double ZTest(TVec *Data, const double Mean, const double Sigma, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);
Z Test.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | The data samples to be analyzed. |
| 2 | Mean | const double | The mean to value to compare the data to. |
| 3 | Sigma | const double | The standard deviation to compare the data to. |
| 4 | hRes | THypothesisResult & | Returns the result of the null hypothesis (default assumption is that the means are equal). |
| 5 | Signif | double & | (Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true. |
| 6 | ConfInt | DewArray<double> & | Returns the 100*(1-Alpha) percent confidence interval for the mean. |
| 7 | hType = THypothesisType::htTwoTailed | const THypothesisType | Defines the type of the null hypothesis (left, right and two - tailed). |
| 8 | Alpha = 0.05 | const double | Defines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected. |
Returns: Z statistics.
Remarks:
Compares the normally distributed Data elements mean value with known standard deviation Sigma, to a mean value Mean.
See Also: Statistics::tTest
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler