Click or drag to resize

OneSampleTTest(Double, Double) Constructor

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public OneSampleTTest(
	double[] data,
	double mu0
)

Parameters

data  Double
An array of observed values.
mu0  Double
The population mean.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data has length of zero after removing missing values.
Remarks
The sample mean, sample standard deviation, and sample size are computed from the given array. Missing values are ignored. 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.
See Also