aqualinkorg / aqualink-app

Aqualink.org Ocean Monitoring Application
MIT License
34 stars 12 forks source link

Fix HUI card values would show Infinity for large data arrays #970

Closed echaidemenos closed 8 months ago

echaidemenos commented 8 months ago

This PR implements a method for calculating the geometric mean while keeping the numbers smaller to avoid reaching Infinity https://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_logarithms

github-actions[bot] commented 8 months ago

Build succeeded and deployed at https://aqualink-app-970.surge.sh (hash 00aaf334e033ef72070344483bd22087bdb0fe55 deployed at 2024-01-30T10:06:54)