pub fn quasi_monte_carlo_integration<F: Fn(&[f64]) -> f64>(
f: F,
bounds: &[(f64, f64)],
points: usize,
replicates: usize,
sequence: QuasiRandomSequence,
seed: u64,
) -> Result<QuasiMonteCarloResult, ErrorsJSL>Expand description
Integrates f over the box bounds (one (lower, upper) pair per dimension) by randomized
quasi-Monte Carlo: replicates independent Cranley-Patterson shifts of the first points
points of a low-discrepancy sequence, each giving an unbiased estimate. The result is their
mean, and their spread gives a standard error. For smooth integrands the error falls almost
like 1/N, against 1/√N for plain Monte Carlo.