Click or drag to resize
Accord.NET (logo)

TwoSampleTTest Constructor (Double, Double, Int32, Double, Double, Int32, 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 mean1,
	double var1,
	int samples1,
	double mean2,
	double var2,
	int samples2,
	bool assumeEqualVariances = true,
	double hypothesizedDifference = 0,
	TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example View Source

Parameters

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.
assumeEqualVariances (Optional)
Type: SystemBoolean
True 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