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

Add geometric mean to map marker plugins #298

Open
dmgaldi opened this issue Jul 20, 2023 · 0 comments
Open

Add geometric mean to map marker plugins #298

dmgaldi opened this issue Jul 20, 2023 · 0 comments

Comments

@dmgaldi
Copy link
Contributor

dmgaldi commented Jul 20, 2023

Currently, only median and arithmetic mean are supported. The challenge here will be avoiding overflow when multiplying numbers. This can be solved by doing arithmetic mean in the log-space, but this costs us efficiency. Another idea is to multiply until we hit a sufficiently large number and then do a log (e.g. https://stackoverflow.com/questions/19980319/efficient-way-to-compute-geometric-mean-of-many-numbers)

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