fix: formatting
This commit is contained in:
parent
69148bb350
commit
e5655dc2d1
|
@ -130,7 +130,7 @@ module Lognormal = {
|
|||
let variance = stdev ** 2.
|
||||
let meanSquared = mean ** 2.
|
||||
let mu = 2. *. Js.Math.log(mean) -. 0.5 *. Js.Math.log(variance +. meanSquared)
|
||||
let sigma = Js.Math.sqrt(Js.Math.log((variance /. meanSquared) +. 1.) )
|
||||
let sigma = Js.Math.sqrt(Js.Math.log(variance /. meanSquared +. 1.))
|
||||
Ok(#Lognormal({mu: mu, sigma: sigma}))
|
||||
} else {
|
||||
Error("Lognormal standard deviation must be larger than 0")
|
||||
|
|
Loading…
Reference in New Issue
Block a user