-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Simple question for C# usage #213
Comments
Hi @aharontaam,
Please see the C documentation for more details: https://msteinbeck.github.io/tinyspline/tinyspline_8h.html#ab595c9894abafd308ed32bbf0e50656e |
That was quite helpful. Thanks. I have another question.
|
We need to clarify some terms first:
Do you mean Monotone Cubic Interpolation? TinySpline doesn't provide a function for this kind of interpolation (yet). Or do you mean that you interpolated a spline with one of TinySpline's interpolation functions where the
Please note that the coefficients of B-Splines are not the same as the coefficients of functions (
I'm not sure what the BSpline spline = ...;
BSpline convexity = spline.Derive(2); and call Vec2 vec = convexity.Bisect(x).ResultVec2(); |
|
Given that your spline is cubic, you can try to decompose it into a sequence of Bezier curves (see Listing 7 in our paper for more details) and compute a quintic function using Hermite interpolation for each Bezier segment where Note that Hermite interpolation can also be used for polynomials of higher degree. |
Thanks |
Please note that I didn't test this approach. Your need to check whether the computed quintic function produced the same (or at least a suitable approximation) curve as your spline. |
Could you solve your issue? If yes, please close this issue. |
Yes, issued solved. |
Are you using quintic Hermite interpolation? Does it produce the same output as your spline? |
Very simple question here:
How one can get the set of values of y's for arbitrary set of x's.
All I see is evaluate for knot values not for x's
The text was updated successfully, but these errors were encountered: