SampleKolmogorovSmirnovTest(Sample, Sample) Method

Tests whether the sample is compatible with another sample.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static TestResult KolmogorovSmirnovTest(
	Sample a,
	Sample b
)

Parameters

a  Sample
One sample.
b  Sample
The other sample.

Return Value

TestResult
The test result. The test statistic is the D statistic and the likelyhood is the right probability to obtain a value of D as large or larger than the one obtained.

Exceptions

ArgumentNullExceptiona or b is .
InsufficientDataExceptionOne or both of the samples is empty.

See Also