savepoint while wrangling types.

This commit is contained in:
NunoSempere 2023-10-14 23:48:58 +01:00
parent fb21e4baa6
commit 90e48d2249
5 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -51,7 +51,7 @@ let mixture (samplers: (unit -> float) array) (weights: float array) =
let chosenSamplerIndex = findIndex cumsummed_normalized_weights (fun x -> x < p) in
let sample = match chosenSamplerIndex with
| None -> None
| Some(i) -> Some(1.0) (* (samplers.(i) ()) |> Some *)
| Some(i) -> Some((samplers.(i) ())) (* (samplers.(i) ()) |> Some *)
in
sample