插值(scipy.interpolate)
程序员文章站
2022-09-04 14:03:32
https://docs.scipy.org/doc/scipy/reference/interpolate.html#module-scipy.interpolate https://*.com/questions/31464345/fitting-a-closed-cur ......
包含样条函数和类,一维和多维(单变量和多变量)插值类,拉格朗日和泰勒多项式插值器,以及fitpack 和dfitpack函数的封装。
univariate interpolation
scipy.interpolate.interp1d
class scipy.interpolate.
interp1d
(x,y,kind ='linear',axis = -1,copy = true,bounds_error = none,fill_value = nan,assume_sorted = false )
scipy.interpolate.barycentricinterpolator
class scipy.interpolate.
barycentricinterpolator
(xi,yi = none,axis = 0 )
样条:
scipy.interpolate.splprep
scipy.interpolate.
splprep
(x, w=none, u=none, ub=none, ue=none, k=3, task=0, s=none, t=none, full_output=0, nest=none, per=0, quiet=1)
find the b-spline representation of an n-dimensional curve.
given a list of n rank-1 arrays, x, which represent a curve in n-dimensional space parametrized by u, find a smooth approximating spline curve g(u). uses the fortran routine parcur from fitpack.
下一篇: 斜率优化dp—从入门到吐血