double ShapiroWilks(TVec *Data, THypothesisResult &hRes, double &Signif, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);
The Shapiro-Wilks test for normality of data.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | Data vector, containing ordered and unique deviates from unknown distribution. Data Length must be betweeen 3 and 5000, otherwise an execption is raised. |
| 2 | hRes | THypothesisResult & | Returns the result of the null hypothesis (default assumption is that data comes from normal distribution). |
| 3 | Signif | double & | (Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true. |
| 4 | hType = THypothesisType::htTwoTailed | THypothesisType | Defines the type of the null hypothesis (left, right and two - tailed). |
| 5 | 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 Shapiro-Wilks statistics.
Remarks:
Performs the The Shapiro-Wilks test for normality of data.
Note
Basic assumption is Data values i.e. deviates from unknown distribution are ordered and unique.
See Also: Statistics::Unique, Statistics::ShapiroFrancia
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler