-
Notifications
You must be signed in to change notification settings - Fork 55
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
Is there a way to impose boundary condition (like derivatives at the edges) with this module? #8
Comments
I believe you can do that by specifying your own knot sequence? You can do this using the subroutine interface (see, for example, the comments in the |
I still can't figure this out. Say a 1d spline interpolated by (x1, y1) (x2, y2) ... (xn, yn) that I want to set its left/right bound derivative (i.e. at x1, xn) to a/b, respectively. How shall I set the knots to achieve that? |
I'm not sure. You may have to check the references given in the core routines. I've only ever used the default (not-a-knot) end conditions. |
Note: as of |
Edit: |
Very interesting, I don't think I noticed this routine before. I think we could definitely use it... |
In terms of actual end conditions, it would be great to be able to set first or second derivatives directly (as is possible in For the OO interface, some shortcuts could be great, for example a simple flag that gives a natural spline (second derivatives zero at the ends), or specifying periodicity in individual dimensions. Not sure how far the original CMLIB routines can help us here, but for more advanced applications, we might be able to leverage some of Dierckx's FITPACK routines. |
As for the
I think both are doable. |
Just a feature request along this: 👍 for periodic boundary conditions |
Hi Jacob, thanks for this library, it's almost exactly what I need for smooth 4D interpolation. Is there any chance of being able to specify natural boundary conditions (second derivative zero at ends) in the near future? |
No promises, but I have started to get back to looking into this. |
No description provided.
The text was updated successfully, but these errors were encountered: