pub fn wilcoxon(
d: &[f64],
alternative: Alternative,
) -> Result<TestResult, ErrorsJSL>Expand description
The Wilcoxon signed-rank test that the differences d (or x − y) are symmetric about zero
(SciPy’s wilcoxon with its defaults: zeros dropped, no continuity correction). Without ties
or zeros the p-value is exact, from the distribution of W⁺ computed by dynamic programming
over the ranks; with ties, by enumerating all sign changes when n ≤ 13, and otherwise from the
normal approximation with the tie correction. For the two-sided test the statistic is
min(W⁺, W⁻), otherwise W⁺.