pub fn stratified_sample_1d(n: usize, rng: &mut Lcg) -> Vec<f64>Expand description
Stratified 1-D sampling.
Divides [0, 1) into n equal strata of width 1/n. One uniform random
point is placed inside each stratum, so the returned vector has exactly n
elements and every stratum [k/n, (k+1)/n) is represented.