Searched refs:weighted_sum (Results 1 – 3 of 3) sorted by relevance
143 Vector2 weighted_sum = cohesion; in DesiredVector() local144 weighted_sum.Add(alignment); in DesiredVector()145 weighted_sum.Add(separation); in DesiredVector()146 return weighted_sum; in DesiredVector()
730 picoos_int32 fact, rest, out, weighted_sum; in transDurWeighted() local734 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()
25 int weighted_sum = num_packets1 * fraction_loss1 + in WeightedLoss() local28 return (weighted_sum + total_num_packets / 2) / total_num_packets; in WeightedLoss()