Skip to main content

latin_hypercube

Function latin_hypercube 

Source
pub fn latin_hypercube(
    bounds: &[(f64, f64)],
    n: usize,
    seed: u64,
) -> Vec<Vec<f64>>
Expand description

Latin Hypercube Sampling over a box.

Divides each dimension into n equal-probability strata and draws one point per stratum (stratified random sampling — far better coverage than plain random for small n).