Skip to main content

to_prob

Function to_prob 

Source
pub fn to_prob(v: &Value) -> OpResult<f64>
Expand description

A value used as a probability (chance weights, bernoulli, binomial…): a prob or a number checked at this boundary. Booleans need prob(b).