OneSampleZTestOfProportion Constructor

Definition

Namespace: Numerics.NET.Statistics.Tests
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

OneSampleZTestOfProportion() Constructs a new unpaired OneSampleZTestOfProportion for the specified samples.
OneSampleZTestOfProportion(Int32, Double) Constructs a new OneSampleZTestOfProportion for the specified samples.
OneSampleZTestOfProportion(Int32, Double, HypothesisType) Constructs a new OneSampleZTestOfProportion for the specified samples.

OneSampleZTestOfProportion

Constructs a new unpaired OneSampleZTestOfProportion for the specified samples.
C#
public OneSampleZTestOfProportion()

Remarks

This constructor constructs a 'blank' one sample z test. The test is an unpaired test for equality of the means with a significance level of 0.95. The sample has to be set using the Sample property before any of the test results are accessed.

OneSampleZTestOfProportion(Int32, Double)

Constructs a new OneSampleZTestOfProportion for the specified samples.
C#
public OneSampleZTestOfProportion(
	int count,
	double proportion
)

Parameters

count  Int32
The number of observations in the sample.
proportion  Double
The proportion of the sample.

Exceptions

ArgumentOutOfRangeException

count is less than or equal to one.

-or

proportion is less than zero or greater than one.

OneSampleZTestOfProportion(Int32, Double, HypothesisType)

Constructs a new OneSampleZTestOfProportion for the specified samples.
C#
public OneSampleZTestOfProportion(
	int count,
	double proportion,
	HypothesisType hypothesisType
)

Parameters

count  Int32
The number of observations in the sample.
proportion  Double
The proportion of the sample.
hypothesisType  HypothesisType
A HypothesisType value that specifies whether the test is one or two-tailed.

Exceptions

ArgumentOutOfRangeException

count is less than or equal to one.

-or

proportion is less than zero or greater than one.

See Also