Home | History | Annotate | Download | only in share

Lines Matching refs:freq

137 bool SpellingTable::put_spelling(const char* spelling_str, double freq) {
147 total_freq_ += freq;
155 raw_spellings_[hash_pos].freq += freq;
164 raw_spellings_[hash_pos].freq += freq;
169 raw_spellings_[hash_pos].freq += freq;
241 raw_spellings_[pos].freq /= total_freq_;
244 max_score = raw_spellings_[0].freq;
247 if (raw_spellings_[pos].freq > max_score)
248 max_score = raw_spellings_[pos].freq;
249 if (raw_spellings_[pos].freq < min_score)
250 min_score = raw_spellings_[pos].freq;
271 double score = log(raw_spellings_[pos].freq) * score_amplifier_;