Click or drag to resize
Accord.NET (logo)

KolmogorovSmirnovTestGetStatistic Method

Gets the appropriate Kolmogorov-Sminorv D statistic for the samples and target distribution.

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double GetStatistic(
	double[] sortedSamples,
	IDistribution<double> distribution,
	KolmogorovSmirnovTestHypothesis alternate
)
Request Example View Source

Parameters

sortedSamples
Type: SystemDouble
The sorted samples.
distribution
Type: Accord.Statistics.DistributionsIDistributionDouble
The target distribution.
alternate
Type: Accord.Statistics.TestingKolmogorovSmirnovTestHypothesis
The alternate hypothesis for the KS test. For SampleIsDifferent, this is the two-sided Dn statistic; for SampleIsGreater this is the one sided Dn+ statistic; and for SampleIsSmaller this is the one sided Dn- statistic.

Return Value

Type: Double
See Also