spec/support/models/functions/gauss.rb in danica-2.2.1 vs spec/support/models/functions/gauss.rb in danica-2.3.0
- old
+ new
@@ -1,7 +1,7 @@
module Danica
- class Function::Gauss < Function.build(:x, median: :u, variance_root: { latex: '\theta', gnu: :v }) { product(parcels) }
+ class Function::Gauss < Function.build(:x, median: :u, variance_root: { latex: '\theta', gnu: :v }) { multiplication(parcels) }
private
def parcels
[
@@ -10,20 +10,20 @@
]
end
def denominator
squared_root(
- product(2, PI, variance),
+ multiplication(2, PI, variance),
)
end
def exp
negative(
division(
power(group(
- sum(x, negative(median))
+ addition(x, negative(median))
), 2),
- product(2, variance)
+ multiplication(2, variance)
)
)
end
def variance