Skip to main content

ks_2samp_py

Function ks_2samp_py 

Source
pub fn ks_2samp_py(
    py: Python<'_>,
    x: &Bound<'_, PyArray1<f64>>,
    y: &Bound<'_, PyArray1<f64>>,
    alternative: &str,
) -> PyResult<Py<PyAny>>
Expand description

Two-sample Kolmogorov-Smirnov test.

Tests whether two samples come from the same distribution using the Kolmogorov-Smirnov statistic.

Parameters: x: First sample array y: Second sample array alternative: Type of hypothesis test (“two-sided”, “less”, or “greater”)

Returns: Dictionary with ‘statistic’ and ‘pvalue’ keys