WilcoxonSignedRankTest Constructor

Definition

Namespace: Numerics.NET.Statistics.Tests
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0

Overload List

WilcoxonSignedRankTest(Vector<Double>, Vector<Double>, HypothesisType) Constructs a new Wilcoxon signed-rank test for paired samples.
WilcoxonSignedRankTest(Vector<Double>, Double, HypothesisType) Constructs a new Wilcoxon signed-rank test for a single sample against a median.

WilcoxonSignedRankTest(Vector<Double>, Vector<Double>, HypothesisType)

Constructs a new Wilcoxon signed-rank test for paired samples.
C#
public WilcoxonSignedRankTest(
	Vector<double> sample1,
	Vector<double> sample2,
	HypothesisType type = HypothesisType.TwoTailed
)

Parameters

sample1  Vector<Double>
The first sample.
sample2  Vector<Double>
The second sample.
type  HypothesisType  (Optional)
The hypothesis type.

Exceptions

ArgumentNullException

sample1 is null.

-or-

sample2 is null.

DimensionMismatchExceptionsample1 and sample2 do not have the same length.

WilcoxonSignedRankTest(Vector<Double>, Double, HypothesisType)

Constructs a new Wilcoxon signed-rank test for a single sample against a median.
C#
public WilcoxonSignedRankTest(
	Vector<double> sample,
	double median = 0,
	HypothesisType type = HypothesisType.TwoTailed
)

Parameters

sample  Vector<Double>
The sample values.
median  Double  (Optional)
The median to test against.
type  HypothesisType  (Optional)
The hypothesis type.

Exceptions

ArgumentNullExceptionsample is null.

See Also