Home
last modified time | relevance | path

Searched refs:stepSize (Results 1 – 3 of 3) 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() local
50 + static_cast<int>(static_cast<float>(bigramProbability + 1) * stepSize); in computeProbabilityForBigram()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java287 final float stepSize = (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in reconstructBigramFrequency() local
289 final float resultFreqFloat = unigramFrequency + stepSize * (bigramFrequency + 1.0f); in reconstructBigramFrequency()
DBinaryDictEncoderUtils.java617 final float stepSize = in getBigramFrequencyDiff() local
620 final float firstStepStart = 1 + unigramFrequency + (stepSize / 2.0f); in getBigramFrequencyDiff()
621 final int discretizedFrequency = (int)((bigramFrequency - firstStepStart) / stepSize); in getBigramFrequencyDiff()