In this recipe, we will look at how to find a cubic spline that interpolates with the main method of spline.
Finding a cubic spline that interpolates a set of data
Getting ready
We will need to follow some instructions and install the prerequisites.
How to do it…
We can use the following functions to solve the problems with this parameter:
- x: array_like, shape (n,). A 1D array containing values of the independent variable. The values must be real, finite, and in strictly increasing order.
- y: array_like. An array containing values of the dependent variable. It can...