[Python] Cubic Spline Interpolation


[Python] Cubic Spline Interpolation

Cubic Spline Interpolation에 대한 내용은 아래 글을 참조하도록 하자. https://blog.naver.com/jinyjoo_/223248462211 [수치해석] Cubic Spline Interpolation Cubic spline interpolation은 주어진 데이터 포인트 두 점의 사이를 분할된 3차함수로 통과하도록 만드는... blog.naver.com 파이썬을 이용해서 Cubic spline을 코딩해보겠다. 주어진 data는 아래와 같다. (Lagrange Interpolation에서 사용했던 Data 이다.) xi -1.0 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1.0 yi 0.03 0.05 0.1 0.2 0.5 1.0 0.5 0.2 0.1 0.05 0.03 코드는 아래와 같다. import numpy as np from scipy.interpolate import CubicSpline import matplotlib....


#Cubic #interpolation #Python #spline #코딩 #파이썬

원문링크 : [Python] Cubic Spline Interpolation