diff options
author | 2013-04-15 03:24:16 -0700 | |
---|---|---|
committer | 2013-04-15 03:24:16 -0700 | |
commit | d55ccbf7f95bb1af2d0b4a60994fb05af502e325 (patch) | |
tree | 91a17cee7ac752540c5abc3ac1a973fa2e676e16 /native/jni/src/proximity_info_state.h | |
parent | be0e013be879aec19197a9e1b0a1d2631a8d4c79 (diff) | |
parent | 837f46dcb35a8f42a6bd5bc5fc6395d7386acb81 (diff) | |
download | latinime-d55ccbf7f95bb1af2d0b4a60994fb05af502e325.tar.gz latinime-d55ccbf7f95bb1af2d0b4a60994fb05af502e325.tar.xz latinime-d55ccbf7f95bb1af2d0b4a60994fb05af502e325.zip |
am 837f46dc: Enable touch coordinate correction for new algorithm
* commit '837f46dcb35a8f42a6bd5bc5fc6395d7386acb81':
Enable touch coordinate correction for new algorithm
Diffstat (limited to 'native/jni/src/proximity_info_state.h')
-rw-r--r-- | native/jni/src/proximity_info_state.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/native/jni/src/proximity_info_state.h b/native/jni/src/proximity_info_state.h index 9bba751d0..bbe8af240 100644 --- a/native/jni/src/proximity_info_state.h +++ b/native/jni/src/proximity_info_state.h @@ -49,8 +49,8 @@ class ProximityInfoState { mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0), mIsContinuousSuggestionPossible(false), mSampledInputXs(), mSampledInputYs(), mSampledTimes(), mSampledInputIndice(), mSampledLengthCache(), - mBeelineSpeedPercentiles(), mSampledDistanceCache_G(), mSpeedRates(), mDirections(), - mCharProbabilities(), mSampledNearKeySets(), mSampledSearchKeySets(), + mBeelineSpeedPercentiles(), mSampledNormalizedSquaredLengthCache(), mSpeedRates(), + mDirections(), mCharProbabilities(), mSampledNearKeySets(), mSampledSearchKeySets(), mSampledSearchKeyVectors(), mTouchPositionCorrectionEnabled(false), mSampledInputSize(0), mMostProbableStringProbability(0.0f) { memset(mInputProximities, 0, sizeof(mInputProximities)); @@ -147,7 +147,9 @@ class ProximityInfoState { return mIsContinuousSuggestionPossible; } + // TODO: Rename s/Length/NormalizedSquaredLength/ float getPointToKeyByIdLength(const int inputIndex, const int keyId) const; + // TODO: Rename s/Length/NormalizedSquaredLength/ float getPointToKeyLength(const int inputIndex, const int codePoint) const; ProximityType getProximityType(const int index, const int codePoint, @@ -231,7 +233,7 @@ class ProximityInfoState { std::vector<int> mSampledInputIndice; std::vector<int> mSampledLengthCache; std::vector<int> mBeelineSpeedPercentiles; - std::vector<float> mSampledDistanceCache_G; + std::vector<float> mSampledNormalizedSquaredLengthCache; std::vector<float> mSpeedRates; std::vector<float> mDirections; // probabilities of skipping or mapping to a key for each point. |