Constructs a OneSampleKSTest from the given sample data and specified distribution.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public OneSampleKSTest(
	int[] data,
	ProbabilityDistribution dist,
	double alpha
)
Visual Basic (Declaration)
Public Sub New ( _
	data As Integer(), _
	dist As ProbabilityDistribution, _
	alpha As Double _
)
Visual C++
public:
OneSampleKSTest(
	array<int>^ data, 
	ProbabilityDistribution^ dist, 
	double alpha
)

Parameters

data
Type: array< System..::.Int32 >[]()[]
The sample data.
dist
Type: CenterSpace.NMath.Stats..::.ProbabilityDistribution
The hypothesized distribution.
alpha
Type: System..::.Double
The accepted probability of falsely rejecting the null hypothesis.

Remarks

The distribution of data is compared to the hypothesized distribution defined by dist.CDF.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if data has length of zero.

See Also