Re: [Qemu-devel] [PATCH 1/2] Rolling statistics utilities

2015-03-02 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 02/27/2015 12:06 PM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > There are various places where it's useful to hold a series > > of values that change over time and get summaries about them. > > > > This provides: >

Re: [Qemu-devel] [PATCH 1/2] Rolling statistics utilities

2015-02-27 Thread Eric Blake
On 02/27/2015 12:06 PM, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > There are various places where it's useful to hold a series > of values that change over time and get summaries about them. > > This provides: > >- a count of the number of items >- min/max

[Qemu-devel] [PATCH 1/2] Rolling statistics utilities

2015-02-27 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" There are various places where it's useful to hold a series of values that change over time and get summaries about them. This provides: - a count of the number of items - min/max - mean - a weighted mean (where you can set the weight to determine