I think we're done here?

This commit is contained in:
Quinn Dougherty 2022-09-01 13:07:13 +08:00
parent ab5b54413b
commit ab9a83bcf7
2 changed files with 2 additions and 1 deletions

View File

@ -516,7 +516,7 @@ let mixture = (
switch value { switch value {
| SampleSet(sampleSet) => Ok((sampleSet, weight)) | SampleSet(sampleSet) => Ok((sampleSet, weight))
| _ => Error("Unreachable") | _ => Error("Unreachable")
} |> E.R.toExn("Mixture coding error: SampleSet expected. This should be inaccessible.") }->E.R2.toExn("Mixture coding error: SampleSet expected. This should be inaccessible.")
) )
let sampleSetMixture = SampleSetDist.mixture(withSampleSetValues, env.sampleCount) let sampleSetMixture = SampleSetDist.mixture(withSampleSetValues, env.sampleCount)
switch sampleSetMixture { switch sampleSetMixture {

View File

@ -45,4 +45,5 @@ module Random = {
size: int, size: int,
} }
@module external sample: (array<float>, sampleArgs) => array<float> = "@stdlib/random/sample" @module external sample: (array<float>, sampleArgs) => array<float> = "@stdlib/random/sample"
let sample = sample
} }