Searched refs:upper_ix (Results 1 – 1 of 1) sorted by relevance
46 const size_t upper_ix = it - x_vec.begin(); in LinearInterpolate() local49 if (upper_ix == 0 || x_vec[upper_ix] <= x) { in LinearInterpolate()50 lower_ix = upper_ix; in LinearInterpolate()52 lower_ix = upper_ix - 1; in LinearInterpolate()55 if (lower_ix == upper_ix) { in LinearInterpolate()58 RTC_DCHECK_NE(x_vec[lower_ix], x_vec[upper_ix]); in LinearInterpolate()59 y = (x - x_vec[lower_ix]) * (y_vec[upper_ix] - y_vec[lower_ix]) / in LinearInterpolate()60 (x_vec[upper_ix] - x_vec[lower_ix]) + in LinearInterpolate()