Constructs a OneSampleTTest instance using the given array of sample data, and the given population mean.

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

Syntax

C#
public OneSampleTTest(
	int[] data,
	double mu0
)
Visual Basic (Declaration)
Public Sub New ( _
	data As Integer(), _
	mu0 As Double _
)
Visual C++
public:
OneSampleTTest(
	array<int>^ data, 
	double mu0
)

Parameters

data
Type: array< System..::.Int32 >[]()[]
An array of observed values.
mu0
Type: System..::.Double
The population mean.

Remarks

The sample mean, sample standard deviation, and sample size are computed from the given array. 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 data has length of zero.

See Also