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