recommended Chi Squared Test Statistic
fun recommendedChiSquaredTestStatistic(u: DoubleArray, k: Int = floor(u.size / 5.0).toInt()): Double
Computes the chi-squared test statistic with recommended intervals and array size
Return
the chi-squared test statistic
Parameters
u
the supposedly U(0,1) observations, must have at least 15 observations
k
the number of intervals in the test, must be less than or equal to u.size/5.0, and greater than or equal to 3