Constructs a TwoSampleUnpairedTTest instance using the given arrays of sample data.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public TwoSampleUnpairedTTest(
	int[] data1,
	int[] data2
)
Visual Basic (Declaration)
Public Sub New ( _
	data1 As Integer(), _
	data2 As Integer() _
)
Visual C++
public:
TwoSampleUnpairedTTest(
	array<int>^ data1, 
	array<int>^ data2
)

Parameters

data1
Type: array< System..::.Int32 >[]()[]
An array of observed values for the first sample.
data2
Type: array< System..::.Int32 >[]()[]
An array of observed values for the second sample.

Remarks

The sample means, sample standard deviations, and sample sizes are computed from the given arrays. The alpha level is set to the current value specified by the static DefaultAlpha property; the form of the hypothesis test is set to the current DefaultType.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if either sample has length of zero.

See Also