Home
last modified time | relevance | path

Searched refs:weighted_sum (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/native_client_sdk/src/examples/demo/flock/
Dgoose.cc143 Vector2 weighted_sum = cohesion; in DesiredVector() local
144 weighted_sum.Add(alignment); in DesiredVector()
145 weighted_sum.Add(separation); in DesiredVector()
146 return weighted_sum; in DesiredVector()
/external/svox/pico/lib/
Dpicodata.c730 picoos_int32 fact, rest, out, weighted_sum; in transDurWeighted() local
734 weighted_sum = 0; in transDurWeighted()
736 weighted_sum += inout[i] * weight[i]; in transDurWeighted()
738 if (0 == weighted_sum) { in transDurWeighted()
744 fact = ((targetdur - inputdur) << (PICODATA_PRECISION-frame_duration_exp))/ weighted_sum; in transDurWeighted()
746 fact = -((inputdur - targetdur) << (PICODATA_PRECISION-frame_duration_exp))/ weighted_sum; in transDurWeighted()
/external/chromium_org/third_party/webrtc/modules/bitrate_controller/
Dbitrate_controller_unittest.cc25 int weighted_sum = num_packets1 * fraction_loss1 + in WeightedLoss() local
28 return (weighted_sum + total_num_packets / 2) / total_num_packets; in WeightedLoss()