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

Fix derivative scaling #163

Merged
merged 4 commits into from
May 5, 2020
Merged

Fix derivative scaling #163

merged 4 commits into from
May 5, 2020

Conversation

justinthomas
Copy link
Contributor

Fixes #162

@msteinbeck
Copy link
Owner

Hi @justinthomas,

thanks for this PR. If I remember correctly, the formulas given at https://pages.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/B-spline/bspline-derv.html only work if the knot vector is scaled to [0, 1]. I'll have a look at your changes. Again, thank your for your contributions.

test/c/derive.c Outdated Show resolved Hide resolved
test/c/derive.c Outdated Show resolved Hide resolved
@msteinbeck
Copy link
Owner

I checked your code and it looks good to me. Could you please fix the two comments listed above? Your test case is very good, thanks for that.

It looks like scaling the knot vector is not necessary. I assume that my previous issue wasn't related to scaling but to another error. However, I'll merge your changes and remove scaling by my own.

@msteinbeck msteinbeck merged commit 4715ae0 into msteinbeck:master May 5, 2020
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

Successfully merging this pull request may close these issues.

Control points of derivatives are scaled incorrectly
2 participants