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

Function penalty_row

engine/src/split/src/session.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98} // namespace
99
100Engine::Penalties::Row penalty_row(const std::vector<int>& seq, const Sampling& s) {
101 Engine::Penalties::Row r;
102 r.repeat = s.pen_repeat;
103 r.freq = s.pen_freq;
104 r.present = s.pen_present;
105 r.counts = window_counts(seq, s.pen_last_n);
106 return r;
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);

Callers 6

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

Calls 1

window_countsFunction · 0.85

Tested by

no test coverage detected