| 75 | } |
| 76 | |
| 77 | void DoSampling(vec_int_t* sampled_nodes) { |
| 78 | sampled_nodes->clear(); |
| 79 | while (sampled_nodes->size() < (size_t)count_) { |
| 80 | int next = sampler_->Next(); |
| 81 | sampled_nodes->emplace_back(nodes_[next]); |
| 82 | } |
| 83 | } |
| 84 | }; |
| 85 | |
| 86 | TEST_F(SamplingTest, UniformSampling) { |