|
KolmogorovSmirnovTest Constructor (Double, IDistributionDouble, KolmogorovSmirnovTestHypothesis)
|
Creates a new One-Sample Kolmogorov test.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public KolmogorovSmirnovTest(
double[] sample,
IDistribution<double> hypothesizedDistribution,
KolmogorovSmirnovTestHypothesis alternate = KolmogorovSmirnovTestHypothesis.SampleIsDifferent
)
Public Sub New (
sample As Double(),
hypothesizedDistribution As IDistribution(Of Double),
Optional alternate As KolmogorovSmirnovTestHypothesis = KolmogorovSmirnovTestHypothesis.SampleIsDifferent
)
Request Example
View SourceParameters
- sample
- Type: SystemDouble
The sample we would like to test as belonging to the hypothesizedDistribution. - hypothesizedDistribution
- Type: Accord.Statistics.DistributionsIDistributionDouble
A fully specified distribution (which must NOT have been estimated from the data). - alternate (Optional)
- Type: Accord.Statistics.TestingKolmogorovSmirnovTestHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also