nested Ok because cauchy requires no input validation

This commit is contained in:
Quinn 2022-04-20 11:44:33 -04:00 committed by GitHub
parent 0540fef63a
commit 5875880c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ module SymbolicConstructors = {
| "uniform" => Ok(SymbolicDist.Uniform.make)
| "beta" => Ok(SymbolicDist.Beta.make)
| "lognormal" => Ok(SymbolicDist.Lognormal.make)
| "cauchy" => Ok(SymbolicDist.Cauchy.make)
| "cauchy" => Ok(Ok(SymbolicDist.Cauchy.make))
| "to" => Ok(SymbolicDist.From90thPercentile.make)
| _ => Error("Unreachable state")
}