type

states.EMADecay

class EMADecay:

Exponential decay of a tracklet field toward ``anchor``.

Each call multiplies the deviation from ``anchor`` by ``exp(-ln 2 * dt / half_life)``, so the field's distance to ``anchor`` halves every ``half_life`` time units.

Parameters

NameTypeDescription
fieldstrTracklet field to decay.
half_lifefloatHalf-life in seconds. Must be strictly positive.
anchor = 0.0floatDecay target. Default ``0.0``.

Raises

  • ValueError — If ``half_life`` is non-positive or ``anchor`` is non-finite.

Members

method

Source: unitrack/states/ema.py:13