Sha256: 2959e7184cf9a0646447b5a75536743995bd5b6f88b97a045b0ce7fd5c932131
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
module Danica class Function::Gauss < Function.build(:x, median: :u, variance_root: { latex: '\theta', gnu: :v }) { multiplication(parcels) } private def parcels [ division(1, denominator), exponential(exp) ] end def denominator squared_root( multiplication(2, PI, variance), ) end def exp negative( division( power(group( addition(x, negative(median)) ), 2), multiplication(2, variance) ) ) end def variance @variance ||= power(variance_root, 2) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-2.3.1 | spec/support/models/functions/gauss.rb |
danica-2.3.0 | spec/support/models/functions/gauss.rb |