Git Product home page Git Product logo

visionion's Issues

Users per hour are not 1/24 of users per day

When we divided numbers of users per day by 24 in order to get the number of users per hour, this was a mistake. We should have written the very same number of users in the hourly data.

Here's why: we calculate the number of users per day by dividing the total number of consensus requests by 10, assuming that every continuously connected client makes 10 consensus requests per day. The result is the theoretical average number of clients that are connected at any given time on that day. There could have been 10% fewer users in the morning and 10% more users in the afternoon, but we won't find out. This number of users is the same when considering the whole day or considering a single hour of it. That's why we need to undo the step where we divide by 24.

Similarly, when we want to know the number of users per week, we can only calculate the average of the 7 days in a week. We wouldn't want to sum up these 7 numbers and state that this is the number of users per week, because what would that tell us?

To give another example, if we knew that there were 480 relays on Linux on a given day, and we wanted to know that number per hour, we wouldn't divide by 24 and say that there were 20 relays at 00:00. The reason is that 480 is already a mean value computed over an entire day, just like the user number per day is a mean value calculated over the day.

I can prepare a patch to the Java importer if you agree with this change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.