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

accessing segments and knots #15

Open
AbiSo opened this issue Jul 9, 2018 · 0 comments
Open

accessing segments and knots #15

AbiSo opened this issue Jul 9, 2018 · 0 comments

Comments

@AbiSo
Copy link
Contributor

AbiSo commented Jul 9, 2018

I needed to access the segments and knots from the NaturalSpline, because I am using the library to compute these values so I can re-use them later on in a different context. For that I added functions

NaturalSplineCommon::segments() const
NaturalSplineCommon::knots() const

Additionally the members variables have been renamed:

NaturalSplineCommon::mSegments;
NaturalSplineCommon::mKnots;

Find attached the patch to make the modification:

NaturalSpline_segments_knots.diff.zip

Maybe it's worth extended the interface such that this kind of information is accessible in general way. This patch just does it for the natural spline.

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

1 participant