Home
last modified time | relevance | path

Searched refs:originalHistoricalInfo (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.cpp47 const HistoricalInfo *const originalHistoricalInfo, const int newProbability, in createUpdatedHistoricalInfo() argument
50 if (newProbability != NOT_A_PROBABILITY && originalHistoricalInfo->getLevel() == 0) { in createUpdatedHistoricalInfo()
55 } else if (!originalHistoricalInfo->isValid() in createUpdatedHistoricalInfo()
56 || originalHistoricalInfo->getLevel() < newHistoricalInfo->getLevel() in createUpdatedHistoricalInfo()
57 || (originalHistoricalInfo->getLevel() == newHistoricalInfo->getLevel() in createUpdatedHistoricalInfo()
58 && originalHistoricalInfo->getCount() < newHistoricalInfo->getCount())) { in createUpdatedHistoricalInfo()
68 const int updatedCount = originalHistoricalInfo->getCount() + 1; in createUpdatedHistoricalInfo()
71 if (originalHistoricalInfo->getLevel() >= MAX_LEVEL) { in createUpdatedHistoricalInfo()
74 originalHistoricalInfo->getLevel(), originalHistoricalInfo->getCount()); in createUpdatedHistoricalInfo()
78 originalHistoricalInfo->getLevel() + 1, 0 /* count */); in createUpdatedHistoricalInfo()
[all …]
Dforgetting_curve_utils.h33 const HistoricalInfo *const originalHistoricalInfo, const int newProbability,
37 const HistoricalInfo *const originalHistoricalInfo,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp350 const HistoricalInfo *originalHistoricalInfo = probabilityEntry.getHistoricalInfo(); in updateAllProbabilityEntriesForGCInner() local
352 *originalHistoricalInfo)) { in updateAllProbabilityEntriesForGCInner()
360 const int updatedCount = originalHistoricalInfo->getCount() / 2; in updateAllProbabilityEntriesForGCInner()
368 const HistoricalInfo historicalInfoToSave(originalHistoricalInfo->getTimestamp(), in updateAllProbabilityEntriesForGCInner()
369 originalHistoricalInfo->getLevel(), updatedCount); in updateAllProbabilityEntriesForGCInner()