1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Adds an extra termination condition for the multimachine.

This commit is contained in:
Thomas Harte 2018-02-11 21:05:59 -05:00
parent 23105956d6
commit 6b8c223804

View File

@ -81,7 +81,10 @@ void MultiMachine::multi_crt_did_run_machines() {
crt_machine_.did_change_machine_order();
}
if(machines_.front()->crt_machine()->get_confidence() > 0.9) {
if(
(machines_.front()->crt_machine()->get_confidence() > 0.9f) ||
(machines_.front()->crt_machine()->get_confidence() >= 2.0f * machines_[1]->crt_machine()->get_confidence())
) {
pick_first();
}
}