ocmath_anderson_darling_test
Description
Normality Test function used to perform Anderson Darling test Analysis.
Syntax
int ocmath_anderson_darling_test( const double * pData, UINT nSize, double * dStat, double * dPValue )
Parameters
- pData
- [input] Pointer of the dataset to analyse
- nSize
- [input] the number of the elements of the dataset
- dStat
- [output] Anderson Darling test statistic
- dPValue
- [output] Probability for this Anderson Darling Normality test
Return
Returns STATS_ERROR_ARRAY_TOO_SMALL if the size of input array is too small or returns STATS_NO_ERROR on successful exit.
Examples
EX1
void ocmath_anderson_darling_test_ex1()
{
vector vecData = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
double dStat, dPValue;
if( STATS_NO_ERROR == ocmath_anderson_darling_test(vecData, vecData.GetSize(), &dStat, &dPValue) )
{
out_double("Stat=", dStat);
out_double("PValue=", dPValue);
}
}
Remark
See Also
header to Included
origin.h
Reference
|