MannWhitneyTest<T> Constructor

Definition

Namespace: Extreme.Statistics.Tests
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

MannWhitneyTest<T>() Constructs a new Mann-Whitney test.
MannWhitneyTest<T>(Vector<T>, ICategoricalVector) Constructs a new Mann-Whitney test for the specified samples.
MannWhitneyTest<T>(Vector<T>, Vector<T>) Constructs a new Mann-Whitney test for the specified samples.

MannWhitneyTest<T>

Constructs a new Mann-Whitney test.
C#
public MannWhitneyTest()

Remarks

This constructor constructs a 'blank' Mann-Whitney test. The test is two-tailed and has a significance level of 0.95. The default settings can be modified by setting the HypothesisType and SignificanceLevel properties.

The samples have to be set using the Sample1 and Sample1 properties before any of the test results are accessed.

MannWhitneyTest<T>(Vector<T>, ICategoricalVector)

Constructs a new Mann-Whitney test for the specified samples.
C#
public MannWhitneyTest(
	Vector<T> values,
	ICategoricalVector groups
)

Parameters

values  Vector<T>
A variable that contains the observations that are to be compared.
groups  ICategoricalVector
A categorical variable with two possible values that specifies the group each observation belongs to.

Remarks

This constructor constructs a 'blank' Mann-Whitney test. The test is two-tailed and has a significance level of 0.95.

The default settings can be modified by setting the HypothesisType and SignificanceLevel properties.

Exceptions

ArgumentNullExceptionvalues is null.

-or-

groups is null.

InvalidOperationException

groups does not have e two-level scale.

MannWhitneyTest<T>(Vector<T>, Vector<T>)

Constructs a new Mann-Whitney test for the specified samples.
C#
public MannWhitneyTest(
	Vector<T> sample1,
	Vector<T> sample2
)

Parameters

sample1  Vector<T>
The first sample.
sample2  Vector<T>
The second sample.

Remarks

This constructor constructs a 'blank' Mann-Whitney test. The test is two-tailed and has a significance level of 0.95.

The default settings can be modified by setting the HypothesisType and SignificanceLevel properties.

Exceptions

ArgumentNullExceptionsample1 is null.

-or-

sample2 is null.

See Also