|
TwoSampleZTest Constructor (Double, Double, Int32, Double, Double, Int32, Double, TwoSampleHypothesis)
|
Constructs a Z test.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public TwoSampleZTest(
double mean1,
double var1,
int samples1,
double mean2,
double var2,
int samples2,
double hypothesizedDifference = 0,
TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Public Sub New (
mean1 As Double,
var1 As Double,
samples1 As Integer,
mean2 As Double,
var2 As Double,
samples2 As Integer,
Optional hypothesizedDifference As Double = 0,
Optional alternate As TwoSampleHypothesis = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example
View SourceParameters
- mean1
- Type: SystemDouble
The first sample's mean. - var1
- Type: SystemDouble
The first sample's variance. - samples1
- Type: SystemInt32
The number of observations in the first sample. - mean2
- Type: SystemDouble
The second sample's mean. - var2
- Type: SystemDouble
The second sample's variance. - samples2
- Type: SystemInt32
The number of observations in the second sample. - hypothesizedDifference (Optional)
- Type: SystemDouble
The hypothesized sample difference. - alternate (Optional)
- Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also