average
average copied to clipboard
A sliding time window for Go
Results
3
average issues
Sort by
recently updated
recently updated
newest added
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...
RangeAverage computes the average over a range of time (e.g. minute 3 to minute 4).
I copied the example code into a file, build with Go 1.1.0.3 and execute. The results are that it returns all zeros. (after I fixed some missing closing brackets in...