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

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

Syntax

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

Parameters

data
Type: array< System..::.Int32 >[]()[]
An array of observed values.
mu0
Type: System..::.Double
The population mean.
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 mean, sample standard deviation, and sample size are computed from the given array.

Exceptions

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

See Also