From 9a65906f5ce7585f1793c28ac16392b9371c9e73 Mon Sep 17 00:00:00 2001 From: Rob Riggs Date: Tue, 28 Dec 2021 17:37:34 -0600 Subject: [PATCH] Trivial optimization to Viterbi. --- TNC/Viterbi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TNC/Viterbi.h b/TNC/Viterbi.h index a92d83f..18a8f9d 100644 --- a/TNC/Viterbi.h +++ b/TNC/Viterbi.h @@ -211,7 +211,7 @@ struct Viterbi size_t min_element = 0; int32_t min_cost = prevMetrics[0]; - for (size_t i = 0; i != NumStates; ++i) + for (size_t i = 1; i != NumStates; ++i) { if (prevMetrics[i] < min_cost) {