Skip to main content

latin_hypercube

Function latin_hypercube 

Source
pub fn latin_hypercube<G: UniformGenerator>(
    n: usize,
    d: usize,
    centered: bool,
    rng: &mut G,
) -> Vec<Vec<f64>>
Expand description

n points of a Latin hypercube in [0, 1)^d (SciPy’s qmc.LatinHypercube): in every coordinate, each of the n intervals [i/n, (i+1)/n) holds exactly one point. Each coordinate takes an independent random permutation of the intervals; the point is placed uniformly in its cell, or at the cell’s centre when centered (SciPy’s scramble=False).