mikejihbe/metrics

Histogram mean becomes NaN as sum becomes too large

Aperta

#13 aperta il 24 mag 2012

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (55 fork)batch import
bughelp wanted

Metriche repository

Star
 (577 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have one metric based on a Histogram with about 90000 entries. The sum becomes huge... and the mean becomes NaN. Actually it becomes a strange number followed by NaNNaNNaN. e.g..

653238.5-217636.16666666666NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...

Guida contributor