am c3363e8e: Merge "Refactor most probable string"

* commit 'c3363e8e34301e6120ae13f34d14ac40149b7392':
  Refactor most probable string
main
Satoshi Kataoka 2012-12-16 22:38:19 -08:00 committed by Android Git Automerger
commit ac2f4c0191
2 changed files with 3 additions and 3 deletions

View File

@ -1168,9 +1168,9 @@ bool ProximityInfoState::suppressCharProbabilities(const int index0, const int i
return true;
}
// Get a word that is detected by tracing the most probable char sequence into codePointBuf and
// Get a word that is detected by tracing the most probable string into codePointBuf and
// returns probability of generating the word.
float ProximityInfoState::getMostProbableCharSequence(int *const codePointBuf) const {
float ProximityInfoState::getMostProbableString(int *const codePointBuf) const {
static const float DEMOTION_LOG_PROBABILITY = 0.3f;
int index = 0;
float sumLogProbability = 0.0f;

View File

@ -196,7 +196,7 @@ class ProximityInfoState {
// Returns angle of three points. x, y, and z are indices.
float getPointsAngle(const int index0, const int index1, const int index2) const;
float getMostProbableCharSequence(int *const codePointBuf) const;
float getMostProbableString(int *const codePointBuf) const;
float getProbability(const int index, const int charCode) const;