cnumr / GreenIT-Analysis

GreenIT-Analysis
GNU Affero General Public License v3.0
147 stars 32 forks source link

Update ecoIndex.js - EcoIndex Value not in defined Bounds (0-100) #29

Closed trineon89 closed 6 months ago

trineon89 commented 3 years ago

Due to your function computeQuantile never return 0, your formula can never return a value higher than 95. I changed the return so it could actually return a 0 value, and it could be mathematically be possible to achieve an index of 100 (even if it only makes theoretically sense). If you test it by now with the minimal logical values (1 DOM-Element, 1 Request and 1 KB), you achieve 98,5, which gives way more sense than 93.5

didierfred commented 6 months ago

Has been corrected in another issue