|
TwoSampleTTest Constructor (Double, Double, Boolean, Double, TwoSampleHypothesis)
|
Tests whether the means of two samples are different.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public TwoSampleTTest(
double[] sample1,
double[] sample2,
bool assumeEqualVariances = true,
double hypothesizedDifference = 0,
TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Public Sub New (
sample1 As Double(),
sample2 As Double(),
Optional assumeEqualVariances As Boolean = true,
Optional hypothesizedDifference As Double = 0,
Optional alternate As TwoSampleHypothesis = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example
View SourceParameters
- sample1
- Type: SystemDouble
The first sample. - sample2
- Type: SystemDouble
The second sample. - assumeEqualVariances (Optional)
- Type: SystemBoolean
True to assume equal variances, false otherwise. Default is true. - hypothesizedDifference (Optional)
- Type: SystemDouble
The hypothesized sample difference. - alternate (Optional)
- Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also