MCPcopy Create free account
hub / github.com/Niko1221/Strata / sample_token

Function sample_token

engine/src/split/src/session.cpp:126–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126int sample_token(const std::vector<std::pair<float, int>>& cand, const Sampling& s, std::mt19937_64& rng) {
127 std::uniform_real_distribution<double> unif(0.0, 1.0);
128 return draw(make_dist(cand, s), unif(rng));
129}
130
131const char* finish_name(Finish f) {
132 switch (f) {

Callers 2

decode_stepMethod · 0.85
admitMethod · 0.85

Calls 2

drawFunction · 0.70
make_distFunction · 0.70

Tested by

no test coverage detected