From 6b8c2238048d99c3617ca90dbced057da7906048 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 11 Feb 2018 21:05:59 -0500 Subject: [PATCH] Adds an extra termination condition for the multimachine. --- Analyser/Dynamic/MultiMachine/MultiMachine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Analyser/Dynamic/MultiMachine/MultiMachine.cpp b/Analyser/Dynamic/MultiMachine/MultiMachine.cpp index f6c6e78a1..648b822ba 100644 --- a/Analyser/Dynamic/MultiMachine/MultiMachine.cpp +++ b/Analyser/Dynamic/MultiMachine/MultiMachine.cpp @@ -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(); } }