Searched refs:stepSize (Results 1 – 3 of 3) sorted by relevance
44 const float stepSize = static_cast<float>(MAX_PROBABILITY - unigramProbability) in computeProbabilityForBigram() local47 + static_cast<int>(static_cast<float>(bigramProbability + 1) * stepSize); in computeProbabilityForBigram()
684 final float stepSize = in getBigramFrequencyDiff() local687 final float firstStepStart = 1 + unigramFrequency + (stepSize / 2.0f); in getBigramFrequencyDiff()688 final int discretizedFrequency = (int)((bigramFrequency - firstStepStart) / stepSize); in getBigramFrequencyDiff()
301 final float stepSize = (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in reconstructBigramFrequency() local303 final float resultFreqFloat = unigramFrequency + stepSize * (bigramFrequency + 1.0f); in reconstructBigramFrequency()