average icon indicating copy to clipboard operation
average copied to clipboard

Count total & average in the first sample period after SW creation

Open wojtekwanczyk opened this issue 2 years ago • 0 comments

Without this change sw.Total() and sw.Average() methods always return 0 before first sample period passes. I propose to interpolate first sample period to the whole window, the same way as it is done after first sample period passes.

Added high-level test for this behaviour and fixed example in README.

wojtekwanczyk avatar Feb 21 '24 15:02 wojtekwanczyk