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

Function penalizes

engine/src/split/src/session.cpp:109–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool penalizes(const Sampling& s) {
110 return s.temperature > 0.f && s.pen_last_n > 0 && (s.pen_repeat != 1.f || s.pen_freq != 0.f || s.pen_present != 0.f);
111}
112
113void check_sampling(const Sampling& s) {
114 auto bad = [](const std::string& what) { throw std::runtime_error("sampling: " + what); };

Callers 8

decode_stepMethod · 0.85
admitMethod · 0.85
draft_oneMethod · 0.85
windowMethod · 0.85
draft_nextMethod · 0.85
draft_batchedMethod · 0.85
check_samplingFunction · 0.85
generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected