gTestStatistic

fun gTestStatistic(counts: DoubleArray, expected: DoubleArray): Double

Computes the G test statistic based on the observed counts and the expected counts. The expected counts must not contain a zero value. The size of the arrays must match.