Home | History | Annotate | Download | only in tests

Lines Matching defs:bins

35 static bool chi_square_test(int bins[256], int e) {
43 double delta = bins[j] - e;
61 int bins[256];
62 memset(bins, 0, sizeof(int)*256);
66 bins[(rand.nextU() >> shift) & 0xff]++;
69 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000));
73 int bins[256];
74 memset(bins, 0, sizeof(int)*256);
80 bins[(int)(f*256.f)]++;
82 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000));
170 int bins[256];
171 memset(bins, 0, sizeof(int)*256);
175 bins[u - 17]++;
178 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000));