Function ADS::serialTest

Function Documentation

inline double ADS::serialTest(const std::vector<double> &U, int d)

the chi-square statistic of the pairs ( U_{2j} , U_{2j+1} ) of numbers in [ 0 , 1 ) in d x d cells, d^2 - 1 degrees of freedom

Pre:

d >= 2 and at least 2 numbers