Lines Matching refs:bins
34 static bool chi_square_test(int bins[256], int e) { in chi_square_test()
42 double delta = bins[j] - e; in chi_square_test()
60 int bins[256]; in test_random_byte() local
61 memset(bins, 0, sizeof(int)*256); in test_random_byte()
65 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte()
68 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_byte()
72 int bins[256]; in test_random_float() local
73 memset(bins, 0, sizeof(int)*256); in test_random_float()
79 bins[(int)(f*256.f)]++; in test_random_float()
81 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_float()
169 int bins[256]; in test_range() local
170 memset(bins, 0, sizeof(int)*256); in test_range()
174 bins[u - 17]++; in test_range()
177 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_range()