Tracking data over time.
See also @ixfx/geometry for a Point/Points tracker.
Returns a new IntervalTracker instance. IntervalTracker
records the interval between each call to mark
.
Keeps track of the total, min, max and avg in a stream of values. By default values are not stored.
Tracks the rate of events. It's also able to compute the min,max and average interval between events.
Returns a function to track changes in a boolean value
Returns a function to monitor value changes.
Frequency keeps track of how many times a particular value is seen, but unlike a Map it does not store the data. By default compares items by value (via JSON.stringify).
A Tracker
that tracks interval between calls to mark()
Base tracker class
A tracked value of type V
.
Base tracker class
Tracks the rate of events. It's also able to compute the min,max and average interval between events.
Keeps track of keyed values of type V
(eg Point). It stores occurences in type T
, which
must extend from TrackerBase<V>
, eg PointTracker
.
Base tracker class
Run a function if a value changes