| OneSampleZTest(Int32, Double, Double, Double, HypothesisType) Constructor |
Constructs a OneSampleZTest instance using the given array of sample data, and
the given population and hypothesis parameters.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public OneSampleZTest(
int[] data,
double mu0,
double sigma,
double alpha,
HypothesisType type
)
Public Sub New (
data As Integer(),
mu0 As Double,
sigma As Double,
alpha As Double,
type As HypothesisType
)
public:
OneSampleZTest(
array<int>^ data,
double mu0,
double sigma,
double alpha,
HypothesisType type
)
new :
data : int[] *
mu0 : float *
sigma : float *
alpha : float *
type : HypothesisType -> OneSampleZTest
Parameters
- data Int32
- An array of observed values.
- mu0 Double
- The population mean.
- sigma Double
- The population standard deviation.
- alpha Double
- The accepted probability of falsely rejecting
the null hypothesis.
- type HypothesisType
- Enum value indicating the form of the alternative
hypothesis.
Exceptions Remarks
The sample mean and sample size are computed from the given vector.
See Also