欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

插值(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.interp1dxykind ='linear'axis = -1copy = truebounds_error = nonefill_value = nanassume_sorted = false 

 

scipy.interpolate.barycentricinterpolator

class scipy.interpolate.barycentricinterpolatorxiyi = noneaxis = 0 

 

样条:

scipy.interpolate.splprep

scipy.interpolate.splprep(xw=noneu=noneub=noneue=nonek=3task=0s=nonet=nonefull_output=0nest=noneper=0quiet=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.