Constructs a OneSampleKSTest from the given sample data and specified cumulative distribution function (CDF).

Namespace: CenterSpace.NMath.Stats
Assembly: NMathStatsPremium (in NMathStatsPremium.dll) Version: 3.6.0.0

Syntax

C#
[ObsoleteAttribute("Use OneSampleKSTest( DoubleVector data, Func<double, double> cdf, double alpha )")]
public OneSampleKSTest(
	DoubleVector data,
	NMathFunctions..::..DoubleUnaryFunction cdf,
	double alpha
)
Visual Basic
<ObsoleteAttribute("Use OneSampleKSTest( DoubleVector data, Func<double, double> cdf, double alpha )")> _
Public Sub New ( _
	data As DoubleVector, _
	cdf As NMathFunctions..::..DoubleUnaryFunction, _
	alpha As Double _
)
Visual C++
public:
[ObsoleteAttribute(L"Use OneSampleKSTest( DoubleVector data, Func<double, double> cdf, double alpha )")]
OneSampleKSTest(
	DoubleVector^ data, 
	NMathFunctions..::..DoubleUnaryFunction^ cdf, 
	double alpha
)

Parameters

data
Type: CenterSpace.NMath.Core..::..DoubleVector
The sample data.
cdf
Type: CenterSpace.NMath.Core..::..NMathFunctions..::..DoubleUnaryFunction
A functor that takes a double-precision floating point number and returns a double-precision floating point number that encapsulates the hypothesized cumulative distribution function (CDF).
alpha
Type: System..::..Double
The accepted probability of falsely rejecting the null hypothesis.

Remarks

Missing values are ignored.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::..InvalidArgumentException Thrown if data has length of zero, after removing missing values.

See Also