Function to perform a Shapiro-Wilk Normality Test.
int ocmath_shapiro_wilk_test( UINT nSize, const double * pX, NormTestResults * SWRes, const int iOption = SHAPIRO_WILK_R94 )
Returns STATS_NO_ERROR on successful exit or a non-zero STATS error code on failure.
EX1
void ocmath_shapiro_wilk_test_ex1() { vector vTestData={ 3.1, 4.2, 2.2, 3, 6 }; NormTestResults SWRes; int nRet = ocmath_shapiro_wilk_test(vTestData.GetSize(), vTestData, &SWRes, 1); }
origin.h