Ran formatter

This commit is contained in:
Ozzie Gooen 2022-05-15 10:58:29 -04:00
parent 47d7ef49cf
commit 4676026aa0
2 changed files with 3 additions and 5 deletions

View File

@ -33,7 +33,6 @@
"Rescript" "Rescript"
], ],
"author": "Quantified Uncertainty Research Institute", "author": "Quantified Uncertainty Research Institute",
"license": "MIT",
"dependencies": { "dependencies": {
"rescript": "^9.1.4", "rescript": "^9.1.4",
"jstat": "^1.9.5", "jstat": "^1.9.5",

View File

@ -222,9 +222,8 @@ let dispatchToGenericOutput = (
->E.R.bind(r => r(f1, f2, f3)) ->E.R.bind(r => r(f1, f2, f3))
->SymbolicConstructors.symbolicResultToOutput ->SymbolicConstructors.symbolicResultToOutput
| ("sample", [EvDistribution(dist)]) => Helpers.toFloatFn(#Sample, dist, ~env) | ("sample", [EvDistribution(dist)]) => Helpers.toFloatFn(#Sample, dist, ~env)
| ("sampleN", [EvDistribution(dist), EvNumber(n)]) => Some( | ("sampleN", [EvDistribution(dist), EvNumber(n)]) =>
FloatArray(GenericDist.sampleN(dist, Belt.Int.fromFloat(n))), Some(FloatArray(GenericDist.sampleN(dist, Belt.Int.fromFloat(n))))
)
| ("mean", [EvDistribution(dist)]) => Helpers.toFloatFn(#Mean, dist, ~env) | ("mean", [EvDistribution(dist)]) => Helpers.toFloatFn(#Mean, dist, ~env)
| ("integralSum", [EvDistribution(dist)]) => Helpers.toFloatFn(#IntegralSum, dist, ~env) | ("integralSum", [EvDistribution(dist)]) => Helpers.toFloatFn(#IntegralSum, dist, ~env)
| ("toString", [EvDistribution(dist)]) => Helpers.toStringFn(ToString, dist, ~env) | ("toString", [EvDistribution(dist)]) => Helpers.toStringFn(ToString, dist, ~env)