Two Sample ZTest Constructor
Definition
Namespace: Numerics.NET.Statistics.Tests
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Two | Constructs a new unpaired TwoSampleZTest for the specified samples. |
Two | Constructs a new TwoSampleZTest for the specified samples. |
TwoSampleZTest
Constructs a new unpaired TwoSampleZTest for
the specified samples.
public TwoSampleZTest()
Remarks
This constructor constructs a 'blank' two sample z test. The test is an unpaired test for equality of the means with a significance level of 0.95. The samples have to be set using the Sample1 and Sample1 properties before any of the test results are accessed.
TwoSampleZTest(Int32, Double, Int32, Double, Double, HypothesisType)
Constructs a new TwoSampleZTest for
the specified samples.
public TwoSampleZTest(
int count1,
double proportion1,
int count2,
double proportion2,
double difference = 0,
HypothesisType hypothesisType = HypothesisType.TwoTailed
)
Parameters
- count1 Int32
- The number of observations in the first sample.
- proportion1 Double
- The proportion of the first sample.
- count2 Int32
- The number of observations in the second sample.
- proportion2 Double
- The proportion of the second sample.
- difference Double (Optional)
- The proposed difference between the two proportions.
- hypothesisType HypothesisType (Optional)
- A HypothesisType value that specifies whether the test is one or two-tailed.
Exceptions
Argument | count1 is less than or equal to one. -or count2 is less than or equal to one. -or proportion1 is less than zero or greater than one. -or proportion2 is less than zero or greater than one. |