Loading native/jni/src/proximity_info_state.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1168,9 +1168,9 @@ bool ProximityInfoState::suppressCharProbabilities(const int index0, const int i return true; 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. // 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; static const float DEMOTION_LOG_PROBABILITY = 0.3f; int index = 0; int index = 0; float sumLogProbability = 0.0f; float sumLogProbability = 0.0f; Loading native/jni/src/proximity_info_state.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -196,7 +196,7 @@ class ProximityInfoState { // Returns angle of three points. x, y, and z are indices. // Returns angle of three points. x, y, and z are indices. float getPointsAngle(const int index0, const int index1, const int index2) const; 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; float getProbability(const int index, const int charCode) const; Loading Loading
native/jni/src/proximity_info_state.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1168,9 +1168,9 @@ bool ProximityInfoState::suppressCharProbabilities(const int index0, const int i return true; 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. // 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; static const float DEMOTION_LOG_PROBABILITY = 0.3f; int index = 0; int index = 0; float sumLogProbability = 0.0f; float sumLogProbability = 0.0f; Loading
native/jni/src/proximity_info_state.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -196,7 +196,7 @@ class ProximityInfoState { // Returns angle of three points. x, y, and z are indices. // Returns angle of three points. x, y, and z are indices. float getPointsAngle(const int index0, const int index1, const int index2) const; 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; float getProbability(const int index, const int charCode) const; Loading