Home
last modified time | relevance | path

Searched refs:UnbiasedUniform (Results 1 – 4 of 4) sorted by relevance

/packages/modules/StatsD/lib/libkll/tests/
Dcompactor_stack_test.cpp96 int weight = random_.UnbiasedUniform(remaining_num_items) + 1; in TEST_P()
123 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
135 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
149 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
160 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
174 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
196 int upbound = (random.UnbiasedUniform(3) + 1) * params.num_items + 1; in TEST_P()
198 compactor_stack.Add(random.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_P()
231 compactor_stack.Add(random.UnbiasedUniform(std::numeric_limits<uint32_t>::max())); in TEST_P()
235 compactor_stack.Add(random.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_P()
[all …]
/packages/modules/StatsD/lib/libkll/
Dsampler.cpp36 if (compactor_stack_->random()->UnbiasedUniform(++item_weight_) == 0) { in Add()
49 if (compactor_stack_->random()->UnbiasedUniform(item_weight_) < in AddWithWeight()
55 if (compactor_stack_->random()->UnbiasedUniform(capacity_) < in AddWithWeight()
Dcompactor_stack.cpp145 bool keep_even_items = (random_->UnbiasedUniform(2) == 0); in Halve()
/packages/modules/StatsD/lib/libkll/include/
Drandom_generator.h32 virtual uint64_t UnbiasedUniform(uint64_t n) = 0;
45 uint64_t UnbiasedUniform(uint64_t n) override { in UnbiasedUniform() function