|
TTest Constructor (Double, Double, Int32, 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 mean,
double stdDev,
int samples,
double hypothesizedMean = 0,
OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis
)
Public Sub New (
mean As Double,
stdDev As Double,
samples As Integer,
Optional hypothesizedMean As Double = 0,
Optional alternate As OneSampleHypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis
)
Request Example
View SourceParameters
- mean
- Type: SystemDouble
The sample's mean value. - stdDev
- Type: SystemDouble
The standard deviation for the samples. - samples
- Type: SystemInt32
The number of observations in the sample. - 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