Home
last modified time | relevance | path

Searched refs:total_freq (Results 1 – 25 of 79) sorted by relevance

1234

/dports/chinese/libpinyin/libpinyin-2.3.0/src/storage/
H A Dngram.cpp70 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 Dphrase_index.cpp59 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 Dphrase_index.h141 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 Destimate_interpolation.cpp57 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 Dvalidate_k_mixture_model.cpp54 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 Dgen_deleted_ngram.cpp109 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 Dgen_ngram.cpp113 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 Dgen_k_mixture_model.cpp295 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 Dsys_generic.c173 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 Dsys_generic.c173 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 Dwentropy.h41 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 Dtest_flexible_ngram.cpp28 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 Dtest_ngram.cpp8 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 Dscpr.c43 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 Dscpr.c51 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 Dscpr.c51 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 Dscpr.c51 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 Dscpr.c51 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 Dphrase_lookup.cpp200 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 Dpinyin_lookup2.cpp378 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 Dphonetic_lookup.h605 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 Dimport_interpolation.cpp211 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 Dngram.cpp249 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 Drans_symbol_encoder.h90 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 Drans_symbol_encoder.h90 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()

1234