Skip to content

Misleading QuadraticSpline description #358

Open
@SouthEndMusic

Description

@SouthEndMusic

The QuadraticSpline description in the docs now reads:

Splines are a local interpolation method, meaning that the curve in a given spot is only affected by the points nearest to it.

That is true for the dependency of a spline curve on the control points. But for QuadraticSpline (and CubicSpline) we do not use the data directly as the control points, but solve for the control points to fit the data. This can lead to non-local influence, case and point:

using DataInterpolations
using Plots

t = 1:10
u = collect(1.0:10)
p = plot()

for u₆ in range(6, 7, length = 10)
    u[6] = u₆
    A = QuadraticSpline(u, t)
    plot!(A)
end

p

figure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions