aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/proximity_info_state_utils.h
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-01-23 16:47:17 +0900
committerSatoshi Kataoka <satok@google.com>2013-01-23 17:32:56 +0900
commite5aad5646309e80e1cd71533fb47a6be43f3aa2f (patch)
tree5c13a48383c5bbe21e384b4bce5fcc1954159aa0 /native/jni/src/proximity_info_state_utils.h
parentf1074c508e70b3489dc85c036f7ed49d3196ba47 (diff)
downloadlatinime-e5aad5646309e80e1cd71533fb47a6be43f3aa2f.tar.gz
latinime-e5aad5646309e80e1cd71533fb47a6be43f3aa2f.tar.xz
latinime-e5aad5646309e80e1cd71533fb47a6be43f3aa2f.zip
Refactor proximity info state
Change-Id: I00e0618d95d20e5bf5c9e6481e4d3037723785f7
Diffstat (limited to 'native/jni/src/proximity_info_state_utils.h')
-rw-r--r--native/jni/src/proximity_info_state_utils.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/native/jni/src/proximity_info_state_utils.h b/native/jni/src/proximity_info_state_utils.h
index b70121ad2..17ef1c3d7 100644
--- a/native/jni/src/proximity_info_state_utils.h
+++ b/native/jni/src/proximity_info_state_utils.h
@@ -69,29 +69,28 @@ class ProximityInfoStateUtils {
const std::vector<int> *const sampledInputYs,
const std::vector<float> *const sampledSpeedRates,
const std::vector<int> *const sampledLengthCache,
- const std::vector<float> *const distanceCache_G,
- std::vector<NearKeycodesSet> *nearKeysVector,
+ const std::vector<float> *const SampledDistanceCache_G,
+ std::vector<NearKeycodesSet> *SampledNearKeysVector,
std::vector<hash_map_compat<int, float> > *charProbabilities);
- static void updateSearchKeysVector(
+ static void updateSampledSearchKeysVector(
const ProximityInfo *const proximityInfo, const int sampledInputSize,
const int lastSavedInputSize,
const std::vector<int> *const sampledLengthCache,
- const std::vector<NearKeycodesSet> *const nearKeysVector,
- std::vector<NearKeycodesSet> *searchKeysVector);
+ const std::vector<NearKeycodesSet> *const SampledNearKeysVector,
+ std::vector<NearKeycodesSet> *sampledSearchKeysVector);
static float getPointToKeyByIdLength(const float maxPointToKeyLength,
- const std::vector<float> *const distanceCache_G, const int keyCount,
+ const std::vector<float> *const SampledDistanceCache_G, const int keyCount,
const int inputIndex, const int keyId, const float scale);
static float getPointToKeyByIdLength(const float maxPointToKeyLength,
- const std::vector<float> *const distanceCache_G, const int keyCount,
+ const std::vector<float> *const SampledDistanceCache_G, const int keyCount,
const int inputIndex, const int keyId);
static void initGeometricDistanceInfos(
const ProximityInfo *const proximityInfo, const int keyCount,
const int sampledInputSize, const int lastSavedInputSize,
const std::vector<int> *const sampledInputXs,
const std::vector<int> *const sampledInputYs,
- std::vector<NearKeycodesSet> *nearKeysVector,
- std::vector<NearKeycodesSet> *searchKeysVector,
- std::vector<float> *distanceCache_G);
+ std::vector<NearKeycodesSet> *SampledNearKeysVector,
+ std::vector<float> *SampledDistanceCache_G);
static void initPrimaryInputWord(
const int inputSize, const int *const inputProximities, int *primaryInputWord);
static void initNormalizedSquaredDistances(