You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a linear interpolating function for a dataset.
Arguments outside the range of the interpolation points are extrapolated with the straight line
of the first or last segment. If the argument is NaN, the function returns NaN.
The passed arrays are not referenced by the returned function.
Parameters
xVals
ArrayLike<number>
The arguments of the interpolation points, in strictly increasing order.
The values must be finite.
Error
If xVals and yVals have different lengths, if there are fewer than 2 points,
or if xVals contains non-finite values or is not strictly increasing.