type

states.PadZerosInitializer

class PadZerosInitializer:

:class:`Initializer` that copies a detection field and zero-pads to ``full_dim``.

Used to spawn a Kalman state from a measurement-only detection: the detection's measurement vector becomes the leading slice of the full state, with zeros for the unobserved velocity (or higher-order) components. ``ds.{field}`` must have shape ``(N, meas_dim)`` and ``meas_dim <= full_dim``.

Parameters

NameTypeDescription
fieldstrDetection field that supplies the leading measurement slice.
full_dimintFinal state dimensionality.

Raises

  • ValueError — If the detection field is wider than ``full_dim``.

Members

method

  • __call__Return a ``(N, full_dim)`` tensor with detection data padded with zeros.
  • __init__

Source: unitrack/states/identity.py:157