diff options
author | 2012-06-08 00:35:05 -0700 | |
---|---|---|
committer | 2012-06-08 00:35:05 -0700 | |
commit | e91f32d8c1175ce2e1d1a67c0518fcea00508b9d (patch) | |
tree | a6cea1a5730d74464a215063636d19f16a86978a /java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java | |
parent | eed2cf287d08463381bc5aec79f893b980bffbb0 (diff) | |
parent | 7214617622fce8f3fea6620e782c16336260a2a3 (diff) | |
download | latinime-e91f32d8c1175ce2e1d1a67c0518fcea00508b9d.tar.gz latinime-e91f32d8c1175ce2e1d1a67c0518fcea00508b9d.tar.xz latinime-e91f32d8c1175ce2e1d1a67c0518fcea00508b9d.zip |
Merge "Remove a slew of Eclipse warnings."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java index 89c59f809..0c5d41a5c 100644 --- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java +++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java @@ -788,7 +788,7 @@ public class BinaryDictInputOutput { // which is the best approximation. This is how we get the most precise result with // only four bits. final double stepSize = - (double)(MAX_TERMINAL_FREQUENCY - unigramFrequency) / (1.5 + MAX_BIGRAM_FREQUENCY); + (MAX_TERMINAL_FREQUENCY - unigramFrequency) / (1.5 + MAX_BIGRAM_FREQUENCY); final double firstStepStart = 1 + unigramFrequency + (stepSize / 2.0); final int discretizedFrequency = (int)((bigramFrequency - firstStepStart) / stepSize); // If the bigram freq is less than half-a-step higher than the unigram freq, we get -1 |