pub fn ks_test_one_sample<F: Fn(f64) -> f64>(
x: &[f64],
cdf: F,
) -> Result<TestResult, ErrorsJSL>Expand description
The one-sample Kolmogorov-Smirnov test of x against a continuous cdf:
D = sup |F_n − F|, with the asymptotic p-value Q((√n + 0.12 + 0.11/√n) D) (Stephens).