Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 448e7322 authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Follow up change for I5f166a738f6e84a1b807be

Bug: 7283955
Change-Id: Iec716d75e7c8a727b198688f44ef4a8cd1255ec1
parent 78fe885f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -801,7 +801,7 @@ int Correction::RankingAlgorithm::calculateFinalProbability(const int inputIndex
                const float factor = max((x < R1)
                        ? (A * (R1 - x) + B * x) / R1
                        : (B * (R2 - x) + C * (x - R1)) / (R2 - R1), MIN);
                // factor is piecewise linear function like:
                // factor is a piecewise linear function like:
                // A -_                  .
                //     ^-_               .
                // B      \              .
@@ -809,7 +809,7 @@ int Correction::RankingAlgorithm::calculateFinalProbability(const int inputIndex
                // C         ------------.
                //                       .
                // 0   R1 R2             .
                multiplyRate((int)(factor * 100), &finalFreq);
                multiplyRate((int)(factor * 100.0f), &finalFreq);
            } else if (squaredDistance == PROXIMITY_CHAR_WITHOUT_DISTANCE_INFO) {
                multiplyRate(WORDS_WITH_PROXIMITY_CHARACTER_DEMOTION_RATE, &finalFreq);
            }