Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
getProb
let getProb nums =
let p = List.fold (fun acc n -> (1.0 - n) * acc) 1.0 nums in (1.0 - p) * 100.0
getProb [0.5; 0.5] |> Dump
getProb [0.05; 0.05; 0.05; 0.07; 0.07] |> Dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.