• Home
  • Raw
  • Download

Lines Matching refs:dist

73   absl::bernoulli_distribution dist(p);  in TEST_P()  local
75 if (dist(rng)) yes++; in TEST_P()
139 auto generate = [&urbg](absl::bernoulli_distribution& dist) { in TEST() argument
144 output.append(dist(urbg) ? "1" : "0"); in TEST()
151 absl::bernoulli_distribution dist(kP); in TEST() local
152 auto v = generate(dist); in TEST()
154 EXPECT_EQ(v, "00000000000010000000000010000000000") << dist; in TEST()
157 absl::bernoulli_distribution dist(kP * 10.0); in TEST() local
158 auto v = generate(dist); in TEST()
160 EXPECT_EQ(v, "00000100010010010010000011000011010") << dist; in TEST()
163 absl::bernoulli_distribution dist(kP * 20.0); in TEST() local
164 auto v = generate(dist); in TEST()
166 EXPECT_EQ(v, "00011110010110110011011111110111011") << dist; in TEST()
169 absl::bernoulli_distribution dist(1.0 - kP); in TEST() local
170 auto v = generate(dist); in TEST()
172 EXPECT_EQ(v, "11111111111111111111011111111111111") << dist; in TEST()
184 auto generate = [&urbg](absl::bernoulli_distribution& dist) { in TEST() argument
189 output.append(dist(urbg) ? "1" : "0"); in TEST()
198 absl::bernoulli_distribution dist(b0); in TEST() local
199 auto v = generate(dist); in TEST()
201 EXPECT_EQ(v, "000011100101") << dist; in TEST()
204 absl::bernoulli_distribution dist(b1); in TEST() local
205 auto v = generate(dist); in TEST()
207 EXPECT_EQ(v, "001111101101") << dist; in TEST()
210 absl::bernoulli_distribution dist(b3); in TEST() local
211 auto v = generate(dist); in TEST()
213 EXPECT_EQ(v, "001111101111") << dist; in TEST()