average
average copied to clipboard
Count total & average in the first sample period after SW creation
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.