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

Question: smoothing clamped spline #34

Closed
shipengfei92 opened this issue Oct 29, 2020 · 4 comments
Closed

Question: smoothing clamped spline #34

shipengfei92 opened this issue Oct 29, 2020 · 4 comments
Labels

Comments

@shipengfei92
Copy link

Hi!
Thanks for this great package.
Currently the smoothing spline is based on natural boundary, is there any possibility we can smooth a clamped spline?

@espdev
Copy link
Owner

espdev commented Oct 29, 2020

Hi @shipengfei92,

De_Boor's smoothing cubic spline for p=1 converges to the "natural" spline interpolant. It seems we cannot change boundary conditions in proposed approach and used solution method.

See https://en.wikipedia.org/wiki/Smoothing_spline#De_Boor's_approach

Maybe the solution can be found in the following document: http://monoceros.physics.muni.cz/~jancely/NM/Texty/Numerika/CubicSmoothingSpline.pdf

But I haven't looked in detail yet.

@shipengfei92
Copy link
Author

Thanks @espdev , I went through this paper, and it has the same idea with De_Boor's method, it will use the natural boundary to create a symmetric parameter matrix R, which can be used to simply the optimizing function, will try to generate a similar symmetric matrix based on the clamped constraints.

@espdev
Copy link
Owner

espdev commented Oct 30, 2020

Thanks @shipengfei92 ,

If you find a solution for smoothing cubic spline with clamped boundary, PR welcome!

@shipengfei92
Copy link
Author

Sure @espdev , thanks for your efforts!

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

No branches or pull requests

2 participants