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

Is there a bug in the spline's basis functions calculation? #35

Open
EDDragonWolf opened this issue Oct 21, 2022 · 1 comment
Open

Is there a bug in the spline's basis functions calculation? #35

EDDragonWolf opened this issue Oct 21, 2022 · 1 comment

Comments

@EDDragonWolf
Copy link

Hello. Thank you for your project and article.
I have been inspired by your project and trying to analyze it in more detail, but I have found one strange part which makes me curious.

The building of the basis functions array for simple and periodical B-spline is the same, except for one small peace in 1st level construction.
Basic B-spline uses this comparison:

if ti[i] < ti[i+1]

At the same time, Basic Periodic B-spline uses another comparison:

if t[i] < ti[i+1]

Is it correct? Or is it a typo?

Thank you!

@peterkovesi
Copy link
Owner

peterkovesi commented Oct 23, 2022 via email

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