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

Ignore partially-supported knots in spacing bounds #43

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

jvansanten
Copy link
Collaborator

Fix a regression after #41 for splines where the first or last order knots are identical. These are perfectly valid, but led rmin_sep to become infinite, and searchcenters() to get stuck in an infinite loop.

It is perfectly legitimate for the first and last `order` knots to
be identical.  Exclude these from the minimum and maximum knot
spacing calculation to prevent elements of rmin_sep from becoming
infinite.
@jvansanten jvansanten merged commit 9610bac into master Apr 15, 2024
12 checks passed
@jvansanten jvansanten deleted the shared-knot-fixup branch April 15, 2024 13:49
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.

1 participant