Home
last modified time | relevance | path

Searched refs:MAX_PROBABILITY (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dprobability_utils.h47 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()
Dforgetting_curve_utils.cpp209 std::min(std::max(static_cast<int>(probability), 1), MAX_PROBABILITY); in ProbabilityTable()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dprobability_utils_test.cpp27 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/
Ddic_node_utils.cpp83 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/
Dver4_patricia_trie_policy.cpp228 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/
Ddynamic_language_model_probability_utils.h40 return std::min(std::max(probability, NOT_A_PROBABILITY), MAX_PROBABILITY); in backoff()
/packages/inputmethods/LatinIME/native/jni/src/
Ddefines.h265 #define MAX_PROBABILITY 255 macro
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp308 MAX_PROBABILITY /* probability */, HistoricalInfo()); in addNgramEntry()