Skip to content

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

Open
wojtekwanczyk wants to merge 2 commits intoprep:masterfrom
wojtekwanczyk:master
Open

Count total & average in the first sample period after SW creation#6
wojtekwanczyk wants to merge 2 commits intoprep:masterfrom
wojtekwanczyk:master

Conversation

@wojtekwanczyk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant