Function to perform a Kolmogorov-Smirnov Normality Test using nag function nag_1_sample_ks_test()
int ocmath_kolmogorov_smirnov_test( UINT nSize, const double * pData, NormTestResults * KSRes, const int nParatype = PARA_ESTIMATED, UINT nParSize = 2, double * pPar = NULL )
Returns STATS_NO_ERROR on successful exit or a non-zero STATS error code on failure.
EX1
void test() { int nRet=0; NormTestResults KSRes1; vector vData1={-2,-1,0,1,2}; nRet=ocmath_kolmogorov_smirnov_test(vData1.GetSize(), vData1, &KSRes1); }
origin.h