首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >插值方法‘三次样条’和‘from_derivatives’做什么?

插值方法‘三次样条’和‘from_derivatives’做什么?
EN

Stack Overflow用户
提问于 2022-03-27 16:33:19
回答 1查看 141关注 0票数 0

熊猫插值纪录片已经为所有其他注释留下了有用的注释,它们是否使用实际的数字索引或时间索引进行插值。

代码语言:javascript
复制
method str, default ‘linear’

    Interpolation technique to use. One of:

        ‘linear’: Ignore the index and treat the values as equally spaced. This is the only method supported on MultiIndexes.

        ‘time’: Works on daily and higher resolution data to interpolate given length of interval.

        ‘index’, ‘values’: use the actual numerical values of the index.

        ‘pad’: Fill in NaNs using existing values.

        ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic’, ‘spline’, ‘barycentric’, ‘polynomial’: Passed to scipy.interpolate.interp1d. These methods use the numerical values of the index. Both ‘polynomial’ and ‘spline’ require that you also specify an order (int), e.g. df.interpolate(method='polynomial', order=5).

        ‘krogh’, ‘piecewise_polynomial’, ‘spline’, ‘pchip’, ‘akima’, ‘cubicspline’: Wrappers around the SciPy interpolation methods of similar names. See Notes.

        ‘from_derivatives’: Refers to scipy.interpolate.BPoly.from_derivatives which replaces ‘piecewise_polynomial’ interpolation method in scipy 0.18.

但不幸的是,我找不到最后两个信息:

代码语言:javascript
复制
cubicspline 
and
from_derivatives
EN

回答 1

Stack Overflow用户

发布于 2022-03-31 23:03:08

scipy.interpolate.CubicSpline

用二次连续可微的分段三次多项式插值数据。结果表示为具有与给定数据匹配的断点的PPoly实例。

衍生物

在Bernstein基中构造一个分段多项式,与断点处的指定值和导数兼容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71638193

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档