Constructs a OneSampleZTest 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 OneSampleZTest(
	int[] data,
	double mu0,
	double sigma,
	double alpha,
	HypothesisType type
)
Visual Basic (Declaration)
Public Sub New ( _
	data As Integer(), _
	mu0 As Double, _
	sigma As Double, _
	alpha As Double, _
	type As HypothesisType _
)
Visual C++
public:
OneSampleZTest(
	array<int>^ data, 
	double mu0, 
	double sigma, 
	double alpha, 
	HypothesisType type
)

Parameters

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

Exceptions

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

See Also