|
Interpolate.
Linear interpolation is used. If the specified indpendent variable
value xp is outside the range of the array x, the first (or last) value
in values will be returned.
- Parameters:
x (a sequence object, e.g. an array, int or float) - array of independent variable values
values (a sequence object, e.g. an array (not character)) - array of dependent variable values
xp (int or float) - independent variable value at which to interpolate
- Returns: the same type as one element of values
- linearly interpolated value
|