Lines Matching refs:pi
381 double pi;
403 pi = (double) bcount / (double) numbits;
414 if (fabs(pi - 0.5) >= tau)
440 numer = fabs(v_obs - (2.0 * numbits * pi * (1.0 - pi)));
441 denom = 2.0 * sqrt(2.0 * numbits) * pi * (1.0 - pi);
459 double *pi;
479 pi = isc_mem_get(mctx, numblocks * sizeof(double));
480 ATF_REQUIRE(pi != NULL);
485 pi[i] = 0.0;
490 pi[i] += bitcounts_table[values[idx]];
493 pi[i] /= mbits;
499 chi_square += (pi[i] - 0.5) * (pi[i] - 0.5);
503 isc_mem_put(mctx, pi, numblocks * sizeof(double));