Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
Dprobability_utils.h44 const float stepSize = static_cast<float>(MAX_PROBABILITY - unigramProbability) in computeProbabilityForBigram() local
47 + static_cast<int>(static_cast<float>(bigramProbability + 1) * stepSize); in computeProbabilityForBigram()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java684 final float stepSize = in getBigramFrequencyDiff() local
687 final float firstStepStart = 1 + unigramFrequency + (stepSize / 2.0f); in getBigramFrequencyDiff()
688 final int discretizedFrequency = (int)((bigramFrequency - firstStepStart) / stepSize); in getBigramFrequencyDiff()
DBinaryDictIOUtils.java301 final float stepSize = (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in reconstructBigramFrequency() local
303 final float resultFreqFloat = unigramFrequency + stepSize * (bigramFrequency + 1.0f); in reconstructBigramFrequency()