MCPcopy Create free account
hub / github.com/Tencent/embedx / DoSampling

Method DoSampling

src/sampler/sampling/sampling_test.cc:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
86TEST_F(SamplingTest, UniformSampling) {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected