/dports/chinese/libpinyin/libpinyin-2.3.0/src/storage/ |
H A D | ngram.cpp | 70 guint32 total_freq = 0; in get_length() local 72 assert(0 == total_freq); in get_length() 81 guint32 total_freq = 0; in mask_out() local 82 assert(get_total_freq(total_freq)); in mask_out() 92 total_freq -= cur->m_freq; in mask_out() 103 assert(set_total_freq(total_freq)); in mask_out() 124 guint32 total_freq; in prune() 125 assert(get_total_freq(total_freq)); in prune() 141 guint32 total_freq; in retrieve_all() local 143 assert(get_total_freq(total_freq)); in retrieve_all() [all …]
|
H A D | phrase_index.cpp | 59 guint32 total_freq = 0; in add_pronunciation() local 67 total_freq += *freq; in add_pronunciation() 74 if (delta > 0 && total_freq > total_freq + delta) in add_pronunciation() 78 total_freq += delta; in add_pronunciation() 115 guint32 total_freq = 0; in increase_pronunciation_possibility() local 122 total_freq += *freq; in increase_pronunciation_possibility() 128 if (delta > 0 && total_freq > total_freq + delta) in increase_pronunciation_possibility() 132 total_freq += delta; in increase_pronunciation_possibility() 388 oldheader.set_content(0, &total_freq, sizeof(guint32)); in diff() 389 total_freq = get_phrase_index_total_freq(); in diff() [all …]
|
H A D | phrase_index.h | 141 guint32 matched = 0, total_freq =0; in get_pronunciation_possibility() local 147 total_freq += *freq; in get_pronunciation_possibility() 156 if ( 0 == total_freq ) in get_pronunciation_possibility() 161 gfloat retval = matched / (gfloat) total_freq; in get_pronunciation_possibility()
|
/dports/chinese/libpinyin/libpinyin-2.3.0/utils/training/ |
H A D | estimate_interpolation.cpp | 57 guint32 total_freq; in compute_interpolation() local 58 assert(bigram->get_total_freq(total_freq)); in compute_interpolation() 59 assert(0 != total_freq); in compute_interpolation() 60 elem_poss = freq / (parameter_t) total_freq; in compute_interpolation() 70 guint32 total_freq = unigram->get_phrase_index_total_freq(); in compute_interpolation() local 71 elem_poss = freq / (parameter_t)total_freq; in compute_interpolation()
|
H A D | validate_k_mixture_model.cpp | 54 guint32 word_count = 0; guint32 total_freq = 0; in validate_unigram() local 60 total_freq += array_header.m_freq; in validate_unigram() 70 if ( total_freq != expected_total_freq ){ in validate_unigram() 73 fprintf(stderr, "sum of freqs in array headers:%d\n", total_freq); in validate_unigram()
|
H A D | gen_deleted_ngram.cpp | 109 guint32 freq, total_freq; in main() local 116 single_gram->get_total_freq(total_freq); in main() 117 single_gram->set_total_freq(total_freq + 1); in main()
|
H A D | gen_ngram.cpp | 113 guint32 freq, total_freq; in main() local 120 single_gram->get_total_freq(total_freq); in main() 121 single_gram->set_total_freq(total_freq + 1); in main()
|
H A D | gen_k_mixture_model.cpp | 295 guint32 total_freq = 0; in post_processing_unigram() local 304 total_freq += freq; in post_processing_unigram() 310 if ( magic_header.m_total_freq + total_freq < magic_header.m_total_freq ){ in post_processing_unigram() 314 magic_header.m_total_freq += total_freq; in post_processing_unigram()
|
/dports/net/chrony/chrony-4.2/ |
H A D | sys_generic.c | 173 double old_slew_freq, total_freq, corr_freq, duration; in update_slew() local 212 total_freq = clamp_freq(base_freq + corr_freq * (1.0e6 - base_freq)); in update_slew() 216 total_freq = (*drv_set_freq)(total_freq); in update_slew() 221 slew_freq = (total_freq - base_freq) / (1.0e6 - total_freq); in update_slew() 250 offset_register, correction_rate, base_freq, total_freq, slew_freq, in update_slew()
|
/dports/net/chrony-lite/chrony-4.2/ |
H A D | sys_generic.c | 173 double old_slew_freq, total_freq, corr_freq, duration; in update_slew() local 212 total_freq = clamp_freq(base_freq + corr_freq * (1.0e6 - base_freq)); in update_slew() 216 total_freq = (*drv_set_freq)(total_freq); in update_slew() 221 slew_freq = (total_freq - base_freq) / (1.0e6 - total_freq); in update_slew() 250 offset_register, correction_rate, base_freq, total_freq, slew_freq, in update_slew()
|
/dports/deskutils/treesheets/treesheets-1.0.2/lobster/src/lobster/ |
H A D | wentropy.h | 41 size_t total_freq = i + NSYM; in WEntropyCoder() local 45 do acc_freq += freq[j++]; while (acc_freq + freq[j] / 2 < total_freq / 2); in WEntropyCoder() 58 total_freq = acc_freq; assert(j - start < range); range = j - start; in WEntropyCoder() 60 total_freq -= acc_freq; range -= j - start; start = j; in WEntropyCoder()
|
/dports/chinese/libpinyin/libpinyin-2.3.0/tests/storage/ |
H A D | test_flexible_ngram.cpp | 28 const guint32 total_freq = 16; in main() local 29 assert(single_gram.set_array_header(total_freq)); in main() 57 assert(freq == total_freq); in main() 92 bigram.set_magic_header(total_freq); in main() 94 assert(total_freq == freq); in main()
|
H A D | test_ngram.cpp | 8 const guint32 total_freq = 16; in main() local 9 assert(single_gram.set_total_freq(total_freq)); in main() 37 assert(freq == total_freq); in main()
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavcodec/ |
H A D | scpr.c | 43 unsigned total_freq; member 82 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables() 87 s->pixel_model[comp][j].total_freq = 256; in reinit_tables() 147 static int get_freq(RangeCoder *rc, unsigned total_freq, unsigned *freq) in get_freq() argument 149 if (total_freq == 0) in get_freq() 152 rc->range = rc->range / total_freq; in get_freq() 166 if (total_freq == 0) in decode0() 169 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0() 189 *freq = total_freq * (uint64_t)(rc->code - rc->code1) / rc->range; in get_freq0() 242 unsigned totfr = pixel->total_freq; in decode_unit() [all …]
|
/dports/multimedia/handbrake/ffmpeg-4.4/libavcodec/ |
H A D | scpr.c | 51 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables() 56 s->pixel_model[comp][j].total_freq = 256; in reinit_tables() 116 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq() argument 118 if (total_freq == 0) in get_freq() 121 rc->range = rc->range / total_freq; in get_freq() 135 if (total_freq == 0) in decode0() 138 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0() 153 static int get_freq0(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq0() argument 158 *freq = total_freq * (uint64_t)(rc->code - rc->code1) / rc->range; in get_freq0() 211 uint32_t totfr = pixel->total_freq; in decode_unit() [all …]
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavcodec/ |
H A D | scpr.c | 51 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables() 56 s->pixel_model[comp][j].total_freq = 256; in reinit_tables() 116 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq() argument 118 if (total_freq == 0) in get_freq() 121 rc->range = rc->range / total_freq; in get_freq() 135 if (total_freq == 0) in decode0() 138 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0() 153 static int get_freq0(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq0() argument 158 *freq = total_freq * (uint64_t)(rc->code - rc->code1) / rc->range; in get_freq0() 211 uint32_t totfr = pixel->total_freq; in decode_unit() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/ |
H A D | scpr.c | 51 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables() 56 s->pixel_model[comp][j].total_freq = 256; in reinit_tables() 116 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq() argument 118 if (total_freq == 0) in get_freq() 121 rc->range = rc->range / total_freq; in get_freq() 135 if (total_freq == 0) in decode0() 138 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0() 153 static int get_freq0(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq0() argument 158 *freq = total_freq * (uint64_t)(rc->code - rc->code1) / rc->range; in get_freq0() 211 uint32_t totfr = pixel->total_freq; in decode_unit() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavcodec/ |
H A D | scpr.c | 51 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables() 56 s->pixel_model[comp][j].total_freq = 256; in reinit_tables() 116 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq() argument 118 if (total_freq == 0) in get_freq() 121 rc->range = rc->range / total_freq; in get_freq() 135 if (total_freq == 0) in decode0() 138 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0() 153 static int get_freq0(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq0() argument 158 *freq = total_freq * (uint64_t)(rc->code - rc->code1) / rc->range; in get_freq0() 211 uint32_t totfr = pixel->total_freq; in decode_unit() [all …]
|
/dports/chinese/libpinyin/libpinyin-2.3.0/src/lookup/ |
H A D | phrase_lookup.cpp | 200 guint32 total_freq; 201 m_merged_single_gram.get_total_freq(total_freq); 202 gfloat bigram_poss = freq / (gfloat) total_freq; 289 guint32 total_freq = 0; in search_bigram2() local 290 m_merged_single_gram.get_total_freq(total_freq); in search_bigram2() 292 gfloat bigram_poss = freq / (gfloat) total_freq; in search_bigram2()
|
H A D | pinyin_lookup2.cpp | 378 guint32 total_freq; in search_bigram2() local 379 m_merged_single_gram.get_total_freq(total_freq); in search_bigram2() 380 gfloat bigram_poss = freq / (gfloat) total_freq; in search_bigram2() 601 guint32 total_freq = 0; in train_result2() local 605 assert(user->get_total_freq(total_freq)); in train_result2() 619 if (seed > 0 && total_freq > total_freq + seed) in train_result2() 622 assert(user->set_total_freq(total_freq + seed)); in train_result2()
|
H A D | phonetic_lookup.h | 605 guint32 total_freq; in search_bigram2() local 606 m_merged_single_gram.get_total_freq(total_freq); in search_bigram2() 607 gfloat bigram_poss = freq / (gfloat) total_freq; in search_bigram2() 879 guint32 total_freq = 0; in train_result3() local 883 assert(user->get_total_freq(total_freq)); in train_result3() 897 if (seed > 0 && total_freq > total_freq + seed) in train_result3() 900 assert(user->set_total_freq(total_freq + seed)); in train_result3()
|
/dports/chinese/libpinyin/libpinyin-2.3.0/utils/storage/ |
H A D | import_interpolation.cpp | 211 guint32 total_freq = 0; in parse_bigram() local 212 assert(last_single_gram->get_total_freq(total_freq)); in parse_bigram() 214 total_freq += count; in parse_bigram() 215 assert(last_single_gram->set_total_freq(total_freq)); in parse_bigram()
|
/dports/x11-toolkits/qt5-virtualkeyboard/kde-qtvirtualkeyboard-5.15.2p4/src/plugins/pinyin/3rdparty/pinyin/share/ |
H A D | ngram.cpp | 249 double total_freq = 0; in build_unigram() local 255 total_freq += freqs[0]; in build_unigram() 268 total_freq += freqs[idx_now]; in build_unigram() 276 freqs[pos] = freqs[pos] / total_freq; in build_unigram()
|
/dports/graphics/blender/blender-2.91.0/extern/draco/dracoenc/src/draco/compression/entropy/ |
H A D | rans_symbol_encoder.h | 90 uint64_t total_freq = 0; in Create() local 93 total_freq += frequencies[i]; in Create() 100 const double total_freq_d = static_cast<double>(total_freq); in Create()
|
/dports/archivers/draco/draco-1.4.3/src/draco/compression/entropy/ |
H A D | rans_symbol_encoder.h | 90 uint64_t total_freq = 0; in Create() local 93 total_freq += frequencies[i]; in Create() 101 const double total_freq_d = static_cast<double>(total_freq); in Create()
|