ExponentiallyDecayingReservoir class
An exponentially-decaying random reservoir of ints. Uses Cormode et al's forward-decaying priority reservoir sampling method to produce a statistically representative sampling reservoir, exponentially biased towards newer entries.
- Implemented types
Constructors
- ExponentiallyDecayingReservoir([int _size = _defaultSize, double _alpha = _defaultAlpha, Clock _clock = const Clock()])
- Creates a new ExponentiallyDecayingReservoir.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
int value) → void -
Adds a new recorded value to the reservoir.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited