triqs::gfs::interpolate_on_segment¶
#include <triqs/gfs.hpp>
Synopsis
interpol_data_lin_t<long, 2> interpolate_on_segment (double x, double x_min, double delta_x, long imax)
Fit the two closest points for x on [x_min, x_max], with a linear weight w
Parameters¶
- x : the point
- i_max : maximum index
- x_min : the window starts. It ends at x_min + i_max* delta_x
- delta_x Throws if x is not in the window