Skip to main content

param_normal

Function param_normal 

Source
pub fn param_normal<S: Scalar>(
    name: &str,
    mean: S,
    std: S,
) -> StochasticParam<S>
Expand description

Create a normally distributed stochastic parameter.

Internally samples from Normal(mean.to_f64(), std.to_f64()) and converts back via S::from_f64(...).