Home
last modified time | relevance | path

Searched refs:new_weight (Results 1 – 25 of 180) sorted by relevance

12345678

/dports/net/iaxmodem/iaxmodem-1.2.0/lib/spandsp/src/
H A Dplc.c125 float new_weight; in plc_rx() local
143 new_weight = new_step; in plc_rx()
147 amp[i] = fsaturate(old_weight*s->pitchbuf[s->pitch_offset] + new_weight*amp[i]); in plc_rx()
150 new_weight += new_step; in plc_rx()
169 float new_weight; in plc_fillin() local
191 new_weight = new_step; in plc_fillin()
194 …y[PLC_HISTORY_LEN - s->pitch + i]*(1.0f - new_weight) + s->history[PLC_HISTORY_LEN - 2*s->pitch + … in plc_fillin()
195 new_weight += new_step; in plc_fillin()
206 new_weight = new_step; in plc_fillin()
210 … amp[i] = fsaturate(old_weight*s->history[PLC_HISTORY_LEN - 1 - i] + new_weight*s->pitchbuf[i]); in plc_fillin()
[all …]
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/src/
H A Dplc.c126 float new_weight; in plc_rx() local
144 new_weight = new_step; in plc_rx()
148 amp[i] = fsaturate(old_weight*s->pitchbuf[s->pitch_offset] + new_weight*amp[i]); in plc_rx()
151 new_weight += new_step; in plc_rx()
170 float new_weight; in plc_fillin() local
190 new_weight = new_step; in plc_fillin()
193 …y[PLC_HISTORY_LEN - s->pitch + i]*(1.0f - new_weight) + s->history[PLC_HISTORY_LEN - 2*s->pitch + … in plc_fillin()
194 new_weight += new_step; in plc_fillin()
205 new_weight = new_step; in plc_fillin()
209 … amp[i] = fsaturate(old_weight*s->history[PLC_HISTORY_LEN - 1 - i] + new_weight*s->pitchbuf[i]); in plc_fillin()
[all …]
/dports/comms/spandsp/spandsp-284fe91/src/
H A Dplc.c126 float new_weight; in plc_rx() local
144 new_weight = new_step; in plc_rx()
148 amp[i] = fsaturate(old_weight*s->pitchbuf[s->pitch_offset] + new_weight*amp[i]); in plc_rx()
151 new_weight += new_step; in plc_rx()
170 float new_weight; in plc_fillin() local
190 new_weight = new_step; in plc_fillin()
193 …y[PLC_HISTORY_LEN - s->pitch + i]*(1.0f - new_weight) + s->history[PLC_HISTORY_LEN - 2*s->pitch + … in plc_fillin()
194 new_weight += new_step; in plc_fillin()
205 new_weight = new_step; in plc_fillin()
209 … amp[i] = fsaturate(old_weight*s->history[PLC_HISTORY_LEN - 1 - i] + new_weight*s->pitchbuf[i]); in plc_fillin()
[all …]
/dports/games/flightgear/flightgear-2020.3.11/3rdparty/iaxclient/lib/spandsp/
H A Dplc.c148 float new_weight; in plc_rx() local
166 new_weight = new_step; in plc_rx()
170 amp[i] = fsaturate(old_weight*s->pitchbuf[s->pitch_offset] + new_weight*amp[i]); in plc_rx()
173 new_weight += new_step; in plc_rx()
192 float new_weight; in plc_fillin() local
214 new_weight = new_step; in plc_fillin()
217 …ry[PLC_HISTORY_LEN - s->pitch + i]*(1.0 - new_weight) + s->history[PLC_HISTORY_LEN - 2*s->pitch + … in plc_fillin()
218 new_weight += new_step; in plc_fillin()
229 new_weight = new_step; in plc_fillin()
233 … amp[i] = fsaturate(old_weight*s->history[PLC_HISTORY_LEN - 1 - i] + new_weight*s->pitchbuf[i]); in plc_fillin()
[all …]
/dports/misc/ncnn/ncnn-20211208/tools/pnnx/src/pass_ncnn/
H A Dnn_ConvTranspose2d.cpp65 std::vector<float> new_weight; in write() local
69 new_weight.resize(outch * inch * kh * kw); in write()
70 float* w2 = (float*)new_weight.data(); in write()
88 op->attrs["1"] = Attribute({outch, inch, kh, kw}, new_weight); in write()
140 std::vector<float> new_weight; in write() local
144 new_weight.resize(outch / groups * inch * kh * kw); in write()
145 float* w2 = (float*)new_weight.data(); in write()
170 op->attrs["1"] = Attribute({outch / groups, inch, kh, kw}, new_weight); in write()
/dports/audio/alsa-lib/alsa-lib-1.2.2/src/pcm/
H A Dpcm_rate_linear.c96 int old_weight, new_weight; in linear_expand() local
119 old_weight = 0x10000 - new_weight; in linear_expand()
120 sample = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand()
159 int old_weight, new_weight; in linear_expand_s16() local
176 old_weight = 0x10000 - new_weight; in linear_expand_s16()
177 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand_s16()
218 int old_weight, new_weight; in linear_shrink() local
240 new_weight = 0x10000 - old_weight; in linear_shrink()
280 int old_weight, new_weight; in linear_shrink_s16() local
297 new_weight = 0x10000 - old_weight; in linear_shrink_s16()
[all …]
/dports/science/dynare/dynare-4.6.4/matlab/perfect-foresight-models/
H A Dperfect_foresight_solver.m119 new_weight = current_weight + step; % Try this weight, and see if it succeeds variable
121 if new_weight >= 1
122 new_weight = 1; % Don't go beyond target point variable
123 step = new_weight - current_weight;
128 oo_.exo_simul = exosim*new_weight + exoinit*(1-new_weight);
129 …_.endo_simul(:,[initperiods, lastperiods]) = new_weight*endosim(:,[initperiods, lastperiods])+(1-n…
150 current_weight = new_weight;
153 … fprintf('%i \t | %1.5f \t | %s \t | %e\n', iteration, new_weight, 'succeeded', me)
163 fprintf('%i \t | %1.5f \t | %s \t | %e\n', iteration, new_weight, 'succeeded', me)
172 fprintf('%i \t | %1.5f \t | %s \t | %e\n', iteration, new_weight, 'failed', me)
[all …]
/dports/www/osrm-backend/osrm-backend-5.26.0/src/updater/
H A Dupdater.cpp251 auto new_weight = in updateSegmentData() local
291 auto new_weight = in updateSegmentData() local
687 EdgeWeight new_weight = 0; in LoadAndUpdateEdgeExpandedGraph() local
696 new_weight = INVALID_EDGE_WEIGHT; in LoadAndUpdateEdgeExpandedGraph()
699 new_weight += weight; in LoadAndUpdateEdgeExpandedGraph()
714 new_weight += weight; in LoadAndUpdateEdgeExpandedGraph()
747 EdgeWeight new_weight; in LoadAndUpdateEdgeExpandedGraph() local
749 std::tie(new_weight, new_duration) = in LoadAndUpdateEdgeExpandedGraph()
757 node_weights[edge.source] & 0x80000000 ? new_weight | 0x80000000 : new_weight; in LoadAndUpdateEdgeExpandedGraph()
763 if (new_weight == INVALID_EDGE_WEIGHT) in LoadAndUpdateEdgeExpandedGraph()
[all …]
/dports/lang/gcc6-aux/gcc-6-20180516/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc8/gcc-8.5.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc10/gcc-10.3.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/gcc/testsuite/gcc.dg/
H A Dsparc-dwarf2.c23 double old_weight, new_weight, sum_weight; in REF_SetReference() local
28 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
29 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/riscv32-unknown-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc9-aux/gcc-9.1.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc48/gcc-4.8.5/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc9-devel/gcc-9-20211007/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gcc11-devel/gcc-11-20211009/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/misc/cxx_atomics_pic/gcc-11.2.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/lang/gnat_util/gcc-6-20180516/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()
/dports/devel/avr-gcc/gcc-10.2.0/gcc/testsuite/gcc.target/sparc/
H A Dsparc-dwarf2.c24 double old_weight, new_weight, sum_weight; in REF_SetReference() local
29 skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight); in REF_SetReference()
30 skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight; in REF_SetReference()

12345678