diff --git a/src/ttables.h b/src/ttables.h index 7dc43b3..35576a6 100644 --- a/src/ttables.h +++ b/src/ttables.h @@ -146,7 +146,7 @@ class TTable { double max_p = -1; for (auto& it : cpd) if (it.second > max_p) max_p = it.second; - const double threshold = - log(max_p) * BEAM_THRESHOLD; + const double threshold = log(max_p) + (BEAM_THRESHOLD * log(10)); for (auto& it : cpd) { const std::string& b = d.Convert(it.first); double c = log(it.second);