kuiper_two

astropy.stats.kuiper_two(data1, data2)[source]

Compute the Kuiper statistic to compare two samples.

Parameters:
data1numpy:array_like

The first set of data values.

data2numpy:array_like

The second set of data values.

Returns:
Dpython:float

The raw test statistic.

fpppython:float

The probability of obtaining two samples this different from the same distribution.

Warning

The fpp is quite approximate, especially for small samples.