HypothesisTests.WilcoxonSignedRankTest Method

Definition

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

Overload List

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

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

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

Parameters

sample1  Vector<Double>
A vector that contains the first sample.
sample2  Vector<Double>
A vector that contains the second sample.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.

Return Value

WilcoxonSignedRankTest
A Wilcoxon signed-rank test.

WilcoxonSignedRankTest(Vector<Double>, Double, HypothesisType)

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

Parameters

sample  Vector<Double>
A vector that contains a sample from the population.
median  Double  (Optional)
The median to test against.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.

Return Value

WilcoxonSignedRankTest
A Wilcoxon signed-rank test.

See Also