Skip to content

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