Constructs a OneSampleKSTest from the given sample data and specified
cumulative distribution function (CDF).
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public OneSampleKSTest( double[] data, NMathFunctions..::.DoubleUnaryFunction cdf ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ data As Double(), _ cdf As NMathFunctions..::.DoubleUnaryFunction _ ) |
| Visual C++ |
|---|
public: OneSampleKSTest( array<double>^ data, NMathFunctions..::.DoubleUnaryFunction^ cdf ) |
Parameters
- data
- Type: array<
System..::.Double
>[]()[]
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).
Remarks
The alpha level is set to the current value specified by the static
DefaultAlpha property; the form of the hypothesis test is set to the
current DefaultType. Missing values are ignored.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if data has length of zero, after removing missing values. |