Skip to main content

cramervonmises

Function cramervonmises 

Source
pub fn cramervonmises(
    x: &[f64],
    cdf: impl Fn(f64) -> f64,
) -> Result<TestResult, ErrorsJSL>
Expand description

The one-sample Cramér-von Mises test of the hypothesis that x comes from the distribution cdf (SciPy’s cramervonmises): ω² = 1/(12n) + Σ ((2i − 1)/(2n) − F(x_(i)))², with the p-value from the finite-sample distribution of Csörgő and Faraway.