Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meter.one_minute_rate is wrong and/or badly documented #36

Open
cbouilla opened this issue Oct 29, 2017 · 0 comments
Open

Meter.one_minute_rate is wrong and/or badly documented #36

cbouilla opened this issue Oct 29, 2017 · 0 comments

Comments

@cbouilla
Copy link

cbouilla commented Oct 29, 2017

The following code:

rate = Meter()
for i in range(int(65/0.05)):
     rate.mark()
     time.sleep(0.05)
print(rate.one_minute_rate)
print(rate.mean_rate)

yields:

12.744700289590714
19.916839105797937

Why does the one-minute moving average differs from the average over the first minute?

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

No branches or pull requests

1 participant