Click or drag to resize
Accord.NET (logo)

TTest Constructor (Double, Double, OneSampleHypothesis)

Tests the null hypothesis that the population mean is equal to a specified value.

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public TTest(
	double[] sample,
	double hypothesizedMean = 0,
	OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis
)
Request Example View Source

Parameters

sample
Type: SystemDouble
The data samples from which the test will be performed.
hypothesizedMean (Optional)
Type: SystemDouble
The constant to be compared with the samples.
alternate (Optional)
Type: Accord.Statistics.TestingOneSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also