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

Can implement a 'not-a-knot' boundary condition like Python? #15

Open
Odinman opened this issue Mar 28, 2021 · 1 comment
Open

Can implement a 'not-a-knot' boundary condition like Python? #15

Odinman opened this issue Mar 28, 2021 · 1 comment

Comments

@Odinman
Copy link

Odinman commented Mar 28, 2021

I found that the default result is the same as Python(scipy.interpolate.CubicSpline)'s natural boundary condition.
But I don't know how to match the default result of Python(with default boundary condition not-a-knot)

@ttk592
Copy link
Owner

ttk592 commented Apr 12, 2021

I've just implemented the not-a-knot condition, let me know if you can match that with Python as well?
You can set it up like this:

    tk::spline s;
    s.set_boundary(tk::spline::not_a_knot, 0.0,
                   tk::spline::not_a_knot, 0.0);
    s.set_points(...); 

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