Function prob
pub fn prob(from: impl Into<Probability>) -> Probability
Expand description
Creates a Probability
from some value that is convertible into it.
ยงPanics
Panics if the converted to probability would lie
outside interval [0.0, 1.0]
. Consult the Into
(or From
)
implementations for more details.