real interp1d (constrast to scipy's)