Skip to main content

ks_test_two_sample

Function ks_test_two_sample 

Source
pub fn ks_test_two_sample(x: &[f64], y: &[f64]) -> Result<TestResult, ErrorsJSL>
Expand description

The two-sample Kolmogorov-Smirnov test. The p-value is the asymptotic Q((√nₑ + 0.12 + 0.11/√nₑ) D) with the effective size nₑ = nm / (n + m), borrowing Stephens’ one-sample correction; for small samples it can differ from the exact p-value by several per cent (7% for samples of 15 and 25).