SciPy-5
B-Spline Curves
Interpolate bank, which is in the SciPy, provides lots of ways to do the interpolation operation.
Here is an example of interpolation with directed line and B-Spline to fix the point on a sine wave.
In this program, we use the interp1d function to get a new linear interpolation function. Splrep function is used to calculate the parameters in B-Spline Curves, then transfer them to splev function to realize the interpolation operation.
Here is the code and the result.
1 |
|
Definition of Interpolate.
- To Be Continue
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!