proxy.golang.org : github.com/davidmz/avgcounter
Package avgcounter implements a simple EMA (Exponential Moving Average) counter. The New function creates a counter with the only parameter: avgInterval. Every Add call adds the value to the counter. The current value can be obtained using the Value method. The counter holds the exponentially (by time) weighted average of all added values.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/davidmz/avgcounter
License: MIT
Latest release: about 4 years ago
First release: about 4 years ago
Namespace: github.com/davidmz
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago