Calculation critique

When viewing the trends I notice that it seems to unwisely use a zero when averaging in days when function not used. A zero should not be used but rather these days should be omitted from the calculation.

If a function is not used than using a zero to average it in would erroneously make the result too li

The graph, trends,s etc. should also note if sonar or accelerometer was used…maybe use a symbol and/or colored line spanning regions of when each used.

I do not think that on days that sonar is used that noise should be calculated and displayed. Doing so may erroneously be measuring “chirping” etc. These days should be omitted from the noise calculation.

Also, REM sleep duration and %REM should be added as a feature.