[][src]Function concrete_lib::operators::math::random::rng_float_normal

pub fn rng_float_normal(mean: f64, std_dev: f64) -> f64

Return a sample drawn from a normal distribution

Arguments

  • mean - mean of the normal distribution
  • std_dev - standard deviation of the normal distribution

Output

  • Return the sample

Example

use concrete_lib::operators::math::random;

// settings
let std_dev: f64 = f64::powi(2., -20);
let mean = 0.;

let r: f64 = random::rng_float_normal(mean, std_dev);