pub fn latin_hypercube_sample(
n: usize,
dim: usize,
bounds: &[(f64, f64)],
) -> Vec<Vec<f64>>Expand description
Generate a Latin hypercube sample of n points in a dim-dimensional box.
Each axis is divided into n equal intervals; one point is sampled from
each interval per axis. The result is a Vec of n points, each a
Vecf64of lengthdim. The boundsslice must have lengthdim`.