Statistics::ShapiroWilks Function

double ShapiroWilks(TVec *Data, THypothesisResult &hRes, double &Signif, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);

The Shapiro-Wilks test for normality of data.

#NameTypeDescription
1DataTVec *Data vector, containing ordered and unique deviates from unknown distribution. Data Length must be betweeen 3 and 5000, otherwise an execption is raised.
2hResTHypothesisResult &Returns the result of the null hypothesis (default assumption is that data comes from normal distribution).
3Signifdouble &(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
4hType = THypothesisType::htTwoTailedTHypothesisTypeDefines the type of the null hypothesis (left, right and two - tailed).
5Alpha = 0.05doubleDefines 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