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

Method usable

engine/src/spec/draft_policy.cpp:131–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131int CostLearner::usable(int bucket, int t, int min_n) const {
132 if (bucket < 0 || bucket >= kCtxBuckets || t < 1 || t > kMaxT) return 0;
133 int n = (int) s_[(size_t) bucket][(size_t) t].size();
134 if (!state_effect(bucket, min_n)) n += (int) late_s_[(size_t) bucket][(size_t) t].size();
135 return n;
136}
137
138int CostLearner::samples(int bucket, int t) const {
139 if (bucket < 0 || bucket >= kCtxBuckets || t < 1 || t > kMaxT) return 0;

Callers 8

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
explore_nextMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected