-
Notifications
You must be signed in to change notification settings - Fork 511
Updated maxKringSize to closed form formula #138
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
Conversation
Source of closed form formula: https://oeis.org/A003215
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks for submitting!
@isaacbrodsky - would it be worthwhile from a perf perspective to actually hard-code the integer sequence for k
less than some threshold?
CHANGELOG.md
Outdated
@@ -11,6 +11,8 @@ The public API of this library consists of the functions declared in file | |||
- Normalize output of h3SetToMultiPolygon to align with the GeoJSON spec, ensuring that each polygon has only one outer loop, followed by holes (#131) | |||
### Changed | |||
- Longitude outputs are now guaranteed to be in the range [-Pi, Pi]. (#93) | |||
### Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This should just go under Changed
I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I put it under Updated because this mathematically does not change the output for k >= 0, but will put it under Changed.
Maybe, but I would hesitate to add a microoptimization like that. Without benchmarking, I'd guess the possible performance gain is pretty small. |
Updated maxKringSize to closed form formula
Source of closed form formula: https://oeis.org/A003215