HypothesisTests.KolmogorovSmirnovTest Method

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

KolmogorovSmirnovTest(Vector<Double>, ContinuousDistribution) Returns a Kolmogorov-Smirnov test whether a sample was drawn from the specified distribution.
KolmogorovSmirnovTest(Vector<Double>, Vector<Double>) Returns a Kolmogorov-Smirnov test whether two samples were drawn from the same distribution.
KolmogorovSmirnovTest(Vector<Double>, Func<Double, Double>) Returns a Kolmogorov-Smirnov test whether a sample was drawn from the specified distribution.

KolmogorovSmirnovTest(Vector<Double>, ContinuousDistribution)

Returns a Kolmogorov-Smirnov test whether a sample was drawn from the specified distribution.
C#
public static OneSampleKolmogorovSmirnovTest KolmogorovSmirnovTest(
	Vector<double> sample,
	ContinuousDistribution distribution
)

Parameters

sample  Vector<Double>
A vector that contains a sample from the population.
distribution  ContinuousDistribution
The proposed distribution of the population.

Return Value

OneSampleKolmogorovSmirnovTest
A one sample Kolmogorov-Smirnov test.

KolmogorovSmirnovTest(Vector<Double>, Vector<Double>)

Returns a Kolmogorov-Smirnov test whether two samples were drawn from the same distribution.
C#
public static TwoSampleKolmogorovSmirnovTest KolmogorovSmirnovTest(
	Vector<double> sample1,
	Vector<double> sample2
)

Parameters

sample1  Vector<Double>
A vector that contains the first sample.
sample2  Vector<Double>
A vector that contains the second sample.

Return Value

TwoSampleKolmogorovSmirnovTest
A two sample Kolmogorov-Smirnov test.

KolmogorovSmirnovTest(Vector<Double>, Func<Double, Double>)

Returns a Kolmogorov-Smirnov test whether a sample was drawn from the specified distribution.
C#
public static OneSampleKolmogorovSmirnovTest KolmogorovSmirnovTest(
	Vector<double> sample,
	Func<double, double> distributionFunction
)

Parameters

sample  Vector<Double>
A vector that contains a sample from the population.
distributionFunction  Func<Double, Double>
A delegate that calculates the cumulative distribution function of the proposed distribution of the population.

Return Value

OneSampleKolmogorovSmirnovTest
A one sample Kolmogorov-Smirnov test.

See Also