Linear interpolation functor

ESCAPE library supports basic piecewise linear interpolation which is functionally the same as provided by numpy library (see numpy.interp function).

The x-coordinates of the interpolated data points must be always increasing and there is no internal sorting procedure. If data points are not increasing the values returned by linear interpolation functor are meaningless.

linterp supports complex forms of functions, like sin(F(X)), where F(x) is any function of variable X.

The values outside the interpolator coordinates range are equal to its nearest value boundary.