Searched refs:unigramFrequency (Results 1 – 2 of 2) sorted by relevance
562 final int bigramFrequency, final int unigramFrequency, final String word) { in makeBigramFlags() argument579 if (unigramFrequency > bigramFrequency) { in makeBigramFlags()582 + word + " is " + unigramFrequency); in makeBigramFlags()583 frequency = unigramFrequency; in makeBigramFlags()587 bigramFlags += getBigramFrequencyDiff(unigramFrequency, frequency) in makeBigramFlags()592 public static int getBigramFrequencyDiff(final int unigramFrequency, in getBigramFrequencyDiff() argument618 (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in getBigramFrequencyDiff()620 final float firstStepStart = 1 + unigramFrequency + (stepSize / 2.0f); in getBigramFrequencyDiff()
285 public static int reconstructBigramFrequency(final int unigramFrequency, in reconstructBigramFrequency() argument287 final float stepSize = (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in reconstructBigramFrequency()289 final float resultFreqFloat = unigramFrequency + stepSize * (bigramFrequency + 1.0f); in reconstructBigramFrequency()