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

Method Next

src/sampler/sampling/partial_sum_sampling.cc:47–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int_t PartialSumSampling::Next() const noexcept {
48 return Next(0, (int)partial_sum_table_.size());
49}
50
51int_t PartialSumSampling::Next(int begin, int end) const noexcept {
52 float_t sum_begin = begin > 0 ? partial_sum_table_[begin - 1] : 0.;

Callers

nothing calls this directly

Calls 1

ThreadLocalRandomFunction · 0.85

Tested by

no test coverage detected