Function metaheuristics_nature::gaussian_pool

source ·
pub fn gaussian_pool<'a>(
    mean: &'a [f64],
    std: &'a [f64]
) -> Box<dyn Fn(usize, RangeInclusive<f64>, &mut Rng) -> f64 + Send + 'a>
Expand description

A function generates a Gaussian pool.

Where mean is the mean value, std is the standard deviation.

See also uniform_pool(), Pool::Func, and SolverBuilder::init_pool().

§Panics

Panic when the lengths of mean and std are not the same.