| WilcoxonSignedRankTest(DoubleVector, DoubleVector, Double, HypothesisType, Boolean) Constructor |
Constructs a WilcoxonSignedRankTest instance using the given paired vectors of sample data,
and the given hypothesis parameters.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public WilcoxonSignedRankTest(
DoubleVector data1,
DoubleVector data2,
double alpha,
HypothesisType type,
bool exactPValue
)
Public Sub New (
data1 As DoubleVector,
data2 As DoubleVector,
alpha As Double,
type As HypothesisType,
exactPValue As Boolean
)
public:
WilcoxonSignedRankTest(
DoubleVector^ data1,
DoubleVector^ data2,
double alpha,
HypothesisType type,
bool exactPValue
)
new :
data1 : DoubleVector *
data2 : DoubleVector *
alpha : float *
type : HypothesisType *
exactPValue : bool -> WilcoxonSignedRankTest
Parameters
- data1 DoubleVector
- A vector of observed values.
- data2 DoubleVector
- A vector of observed values.
- alpha Double
-
The accepted probability of falsely rejecting the null hypothesis.
- type HypothesisType
-
Enum value indicating the form of the alternative hypothesis.
- exactPValue Boolean
-
A boolean value indicating whether to calculate an exact p-value by enumerating all possible combinations of the test
statistic given n. If false, a normal approximation is used.
Exceptions Exception | Condition |
---|
InvalidArgumentException |
Thrown if the given data contains zero valid pairs (valid pairs are non-NaN and unequal), or if
exactPvalue equals true for n > 30;
|
Remarks
Paired observations where either value is missing, or where the difference between values
is zero, are ignored.
See Also