Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double tTest(TVec *Data, double Mean, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05); | One or two sample paired or pooled T-test. |
| 2 | double tTest(TVec *Data1, TVec *Data2, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, bool Paired = false, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05); | Performs the two sample pooled or paired t-test. |
Overload 1: double tTest(TVec *Data, double Mean, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);
One or two sample paired or pooled T-test.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | |
| 2 | Mean | double | |
| 3 | hRes | THypothesisResult & | |
| 4 | Signif | double & | |
| 5 | ConfInt | DewArray<double> & | |
| 6 | hType = THypothesisType::htTwoTailed | const THypothesisType | |
| 7 | Alpha = 0.05 | const double |
Remarks:
Performs the one sample T-test. It compares Data mean value with the Mean. The null hypothesis is that Data mean value is equal to the Mean.
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler
Overload 2: double tTest(TVec *Data1, TVec *Data2, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, bool Paired = false, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);
Performs the two sample pooled or paired t-test.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data1 | TVec * | First set of data from which to compute the mean. |
| 2 | Data2 | TVec * | Second set of data from which to compute the mean. |
| 3 | hRes | THypothesisResult & | Returns the result of the null hypothesis (default assumption is that the means are equal). |
| 4 | Signif | double & | (Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true. |
| 5 | ConfInt | DewArray<double> & | Returns the 100*(1-Alpha) percent confidence interval for the mean. |
| 6 | Paired = false | bool | If true, tTest routine will perform Two-Sample Paired t-Test. If false, tTest will perform Two-Sample Pooled (unpaired) t-Test. |
| 7 | hType = THypothesisType::htTwoTailed | THypothesisType | Defines the type of the null hypothesis (left, right and two - tailed). |
| 8 | Alpha = 0.05 | double | Defines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected. |
Returns: The T-test statistics.
Remarks:
It compares Data1 mean value with Data2 mean value. The assumption is Data1 and Data2 variances are equal, but unknown. The null hypothesis is that Data1 mean is equal to Data2 mean.
See Also: Statistics::ZTest
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler