| 2.1.24.2.1 ocmath_2_sample_ks_test
 DescriptionPerforms a Kolmogorov-Smirnov test for on two independent samples of possibley unequal
size. The main engine is nag_2_sample_ks_test. This is an OriginPro only function.
 Syntaxint ocmath_2_sample_ks_test( const double * pData1, const int nSize1, const double * pData2, const int nSize2, const int nTailType, NPHStats * KSStats ) Parameters pData1[input] pointer to 1st data points for Kolmogorov-Smirnov test nSize1[input] number of pData1 pData2[input] pointer to 2nd data points for Kolmogorov-Smirnov test nSize2[input] number of pData2 nTailType[input] value indicates Tail Type. which containing 3 types:TAILED_TEST_TWO is 0,TAILED_TEST_UPPER is 1,TAILED_TEST_LOWER is 2 KSStats[output] pointer to structure containing the test statistic and p-value
 ReturnReturns STATS_NO_ERROR on successful exit or an STATS error code on failure.
 ExamplesEX1
 void ocmath_2_sample_ks_test_ex1()
{
    vector pData1 = {1.0, 2.3, 4.5, 2.0, 5.3};
    vector pData2 = {2.2, 5.6, 4.3, 1.7, 3.8, 1.1};
    int nSize1 = pData1.GetSize();
    int nSize2 = pData2.GetSize();
    int nTailType = TAILED_TEST_TWO;
    NPHStats KSStats;
    
    int nRet = ocmath_2_sample_ks_test(pData1, nSize1, pData2, nSize2, nTailType, &KSStats);
    out_int("nRet=", nRet);
    
}RemarkSee AlsoHeader to Includedorigin.h
 Reference |