How to do it...

  1. Interpolation is a basic method in numerical computation that is obtained from a discrete set of data points, intended to find an interpolation function that represents some higher order structure that contains the data.
  2. The best known example is the interpolation of a sequence of points (x_k and y_k) in a plane to obtain a curve that goes through all of the points in the order dictated by the sequence.
  3. If the points in the previous sequence are in the right position and order, it is possible to find a univariate function y = f(x) for which y_k = f(x_k). It is often reasonable to request this interpolating function to be a polynomial, a rational function, or a more complex functional object. Interpolation is also possible ...

Get SciPy Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.