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

Function tail

engine/src/split/src/batch.cpp:19–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 return std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - t0).count();
18}
19std::vector<int> tail(const std::vector<int>& v, int n) {
20 return std::vector<int>(v.size() > (size_t) n ? v.end() - n : v.begin(), v.end());
21}
22// reach[j]: the chance that drafts 0 .. j all stand, from the decayed counts. A position never reached yet (its counts
23// still the prior's: tried exactly 1) follows the trend of the two before it, q_last * min(1, q_last / q_before):
24// a lane whose drafts all stand (a code edit) is not held short by the prior until something drafts that deep, and one

Callers 3

windowMethod · 0.70
draft_nextMethod · 0.70
draft_batchedMethod · 0.70

Calls 3

sizeMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected