method

states.EMADecay.__call__

def __call__(self, cs: Tracklets, ctx: FrameContext) -> Tracklets

Decay the field toward :attr:`anchor` by one time step.

Parameters

NameTypeDescription
csTrackletsCurrent tracklet snapshot.
ctxFrameContextFrame context; ``ctx.delta`` carries the elapsed time.

Returns

Tracklets — New snapshot with the field decayed.

Raises

  • ValueError — If ``ctx.delta`` is negative.

Source: unitrack/states/ema.py:51