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

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

Syntax

C#
public OneSampleZTest(
	DoubleVector data,
	double mu0,
	double sigma
)
Visual Basic (Declaration)
Public Sub New ( _
	data As DoubleVector, _
	mu0 As Double, _
	sigma As Double _
)
Visual C++
public:
OneSampleZTest(
	DoubleVector^ data, 
	double mu0, 
	double sigma
)

Parameters

data
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values.
mu0
Type: System..::.Double
The population mean.
sigma
Type: System..::.Double
The population standard deviation.

Remarks

The sample mean and sample size are computed from the given vector. 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.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if data has length of zero after removing missing values.

See Also