Constructs a TwoSampleUnpairedUnequalTTest instance using the given arrays of sample data, and the given hypothesis parameters.

Namespace: CenterSpace.NMath.Stats
Assembly: NMathStatsPremium (in NMathStatsPremium.dll) Version: 3.6.0.0

Syntax

C#
public TwoSampleUnpairedUnequalTTest(
	double[] data1,
	double[] data2,
	double alpha,
	HypothesisType type
)
Visual Basic
Public Sub New ( _
	data1 As Double(), _
	data2 As Double(), _
	alpha As Double, _
	type As HypothesisType _
)
Visual C++
public:
TwoSampleUnpairedUnequalTTest(
	array<double>^ data1, 
	array<double>^ data2, 
	double alpha, 
	HypothesisType type
)

Parameters

data1
Type: array<System..::..Double>[]()[][]
An array of observed values for the first sample.
data2
Type: array<System..::..Double>[]()[][]
An array of observed values for the second sample.
alpha
Type: System..::..Double
The accepted probability of falsely rejecting the null hypothesis.
type
Type: CenterSpace.NMath.Stats..::..HypothesisType
Enum value indicating the form of the alternative hypothesis.

Remarks

The sample means, sample standard deviations, and sample sizes are computed from the given arrays. Missing values are ignored.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::..InvalidArgumentException Thrown if either sample has length of zero after removing missing values.

See Also