Closed GregBowyer closed 10 years ago
No love for this pull request ?
Looks pretty sweet! A bit mathematically daunting, but sweet. :-)
I fixed a small Python 3 incompatibility, added a simple test case, and merged it in. It'll be in the next PyPI release. Thanks!
The yammer / codahale metrics library implements a nice sample method that provides for exponential decay with tiny amounts of memory.
This is based on the Comode et al paper Forward Decay: A practical Time Decay Model for Streaming Streams
This hopefully provides a transliteration of the java code to scales, done with the java code in one hand, whilst glancing at the Comode paper in the other.
Acked-by: Zac Propersi logicalbomb@github.com