public static TestResult KuiperTest(
this IReadOnlyList<double> sample,
ContinuousDistribution distribution
)
<ExtensionAttribute>
Public Shared Function KuiperTest (
sample As IReadOnlyList(Of Double),
distribution As ContinuousDistribution
) As TestResult
public:
[ExtensionAttribute]
static TestResult^ KuiperTest(
IReadOnlyList<double>^ sample,
ContinuousDistribution^ distribution
)
[<ExtensionAttribute>]
static member KuiperTest :
sample : IReadOnlyList<float> *
distribution : ContinuousDistribution -> TestResult
Like the Kolmogorov-Smirnov test (KolmogorovSmirnovTest(IReadOnlyListDouble, ContinuousDistribution)), Kuiper's test compares the EDF of the sample to the CDF of the given distribution. Unlike the Kolmogorov-Smirnov test, the Kuiper test satistic in invariant under re-definitions of the origin. It is thus particularly appropriate for circular distributions, although it can also be applied to non-periodic distributions.
For small sample sizes, we compute the null distribution of V exactly. For large sample sizes, we use an accurate asymptotic approximation. Therefore it is safe to use this method for all sample sizes.
ArgumentNullException | distribution is . |
InsufficientDataException | There is no data in the sample. |