| |
- interp(z0, z, f)
- Linear interpolation.
Sequences z and f must be of the same length,
and the entries in z must be monotonically increasing.
Example:
>>> z = [0.0, 0.2, 0.5, 1.2, 2.1]
>>> f = [3.0, 2.0, 1.0, 0.0, -1.0]
>>>print interp(-2, z, f), interp(0.5, z, f), interp(6, z, f)
3.0 7.0 -9.0
- quadInterp(z0, z, f)
|