This commit is contained in:
Ozzie Gooen 2022-05-20 22:54:15 -04:00
parent 390ac2e2bb
commit 7e2437bfc0
3 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,6 @@ let isSymbolic = (t: t) =>
| _ => false
}
let sampleN = (t: t, n) =>
switch t {
| PointSet(r) => PointSetDist.sampleNRendered(n, r)
@ -32,7 +31,7 @@ let sampleN = (t: t, n) =>
| SampleSet(r) => SampleSetDist.sampleN(r, n)
}
let sample = (t: t) => sampleN(t, 1) -> E.A.first |> E.O.toExn("Should not have happened")
let sample = (t: t) => sampleN(t, 1)->E.A.first |> E.O.toExn("Should not have happened")
let toSampleSetDist = (t: t, n) =>
SampleSetDist.make(sampleN(t, n))->E.R2.errMap(DistributionTypes.Error.sampleErrorToDistErr)

View File

@ -53,7 +53,7 @@ let more = [
Function.make(
~name="To",
~definitions=[TwoArgDist.mkRegular("to", twoArgs(SymbolicDist.From90thPercentile.make))],
)
),
]
let allFunctions = [NormalFn.toFn, LognormalFn.toFn]

View File

@ -3,7 +3,7 @@ Some functions from modules `L`, `O`, and `R` below were copied directly from
running `rescript convert -all` on Rationale https://github.com/jonlaing/rationale
*/
let equals = (a,b) => a === b
let equals = (a, b) => a === b
module FloatFloatMap = {
module Id = Belt.Id.MakeComparable({