Click or drag to resize

OneSampleTTest(DoubleVector, Double, Double, HypothesisType) Constructor

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public OneSampleTTest(
	DoubleVector data,
	double mu0,
	double alpha,
	HypothesisType type
)

Parameters

data  DoubleVector
A vector of observed values.
mu0  Double
The population mean.
alpha  Double
The accepted probability of falsely rejecting the null hypothesis.
type  HypothesisType
Enum value indicating the form of the alternative hypothesis.
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 vector. Missing values are ignored.
See Also