| 98 | } // namespace |
| 99 | |
| 100 | Engine::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 | |
| 109 | bool 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); |
no test coverage detected