Searched refs:MAX_PROBABILITY (Results 1 – 8 of 8) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | probability_utils.h | 47 const float stepSize = static_cast<float>(MAX_PROBABILITY - unigramProbability) in computeProbabilityForBigram() 55 const float probability = static_cast<float>(MAX_PROBABILITY) in encodeRawProbability() 60 return std::min(static_cast<int>(probability + 0.5f), MAX_PROBABILITY); in encodeRawProbability()
|
D | forgetting_curve_utils.cpp | 209 std::min(std::max(static_cast<int>(probability), 1), MAX_PROBABILITY); in ProbabilityTable()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | probability_utils_test.cpp | 27 EXPECT_EQ(MAX_PROBABILITY, ProbabilityUtils::encodeRawProbability(1.0f)); in TEST() 28 EXPECT_EQ(MAX_PROBABILITY - 9, ProbabilityUtils::encodeRawProbability(0.5f)); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_utils.cpp | 83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) in getBigramNodeImprobability() 84 / static_cast<float>(MAX_PROBABILITY); in getBigramNodeImprobability()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 228 return std::min(MAX_PROBABILITY - prevWordUnigramProbability + bigramProbability, in getBigramConditionalProbability() 229 MAX_PROBABILITY); in getBigramConditionalProbability() 377 false /* isBlacklisted */, MAX_PROBABILITY /* probability */, HistoricalInfo()); in addNgramEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | dynamic_language_model_probability_utils.h | 40 return std::min(std::max(probability, NOT_A_PROBABILITY), MAX_PROBABILITY); in backoff()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | defines.h | 265 #define MAX_PROBABILITY 255 macro
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 308 MAX_PROBABILITY /* probability */, HistoricalInfo()); in addNgramEntry()
|