Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading QuadraticSpline description #358

Open
SouthEndMusic opened this issue Nov 14, 2024 · 1 comment
Open

Misleading QuadraticSpline description #358

SouthEndMusic opened this issue Nov 14, 2024 · 1 comment

Comments

@SouthEndMusic
Copy link
Member

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

@ChrisRackauckas
Copy link
Member

Yeah good point, that should get updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants