在SciPy中,什么是“slinear”插值?

2024-06-24 12:03:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我在网上找不到解释in the documentation或任何地方。“slinear”代表什么?它有什么作用?在


Tags: theindocumentation地方代表slinear
1条回答
网友
1楼 · 发布于 2024-06-24 12:03:28

看看scipy/interpolate/interpolate.py的来源, slinear是1阶的spline

if kind in ['zero', 'slinear', 'quadratic', 'cubic']:
    order = {'nearest': 0, 'zero': 0,'slinear': 1,
             'quadratic': 2, 'cubic': 3}[kind]
    kind = 'spline'

。。。在

^{pr2}$

由于splmake的文档状态:

def splmake(xk, yk, order=3, kind='smoothest', conds=None):
    """
    Return a representation of a spline given data-points at internal knots
    ...

相关问题 更多 >