Searched refs:cached_index_ (Results 1 – 3 of 3) sorted by relevance
35 cached_index_ = 0; in InterpolatorBase()101 cached_index_ = 0; in Initialize()131 if (cached_index_ < 0 || cached_index_ > data_length_ - 2) { in Interpolate()133 "[0, %d, %d]", cached_index_, data_length_ - 2); in Interpolate()137 if (x <= x_data_[cached_index_]) { in Interpolate()138 if (cached_index_ <= 0) { in Interpolate()139 cached_index_ = 0; in Interpolate()142 if (x >= x_data_[cached_index_ - 1]) { in Interpolate()143 cached_index_--; // Fast descending in Interpolate()146 cached_index_ = 0; in Interpolate()[all …]
54 using BaseClass::cached_index_;65 T dX = x_data_[cached_index_ + 1] - x_data_[cached_index_]; in MethodSpecificInterpolation()66 T dY = y_data_[cached_index_ + 1] - y_data_[cached_index_]; in MethodSpecificInterpolation()67 T dx = x - x_data_[cached_index_]; in MethodSpecificInterpolation()68 return y_data_[cached_index_] + (dY * dx) / dX; in MethodSpecificInterpolation()
86 int cached_index_; variable