Main Content

distance

Distances between measurements and predicted measurements

Description

dist = distance(abfilter,zMatrix) computes the distance between one or more predicted measurements given in zMatrix and the measurement predicted by the abfilter object.

Input Arguments

collapse all

Alpha-beta tracking filter, specified as a phased.AlphaBetaFilter object.

Measurements of tracked objects, specified as an N-by-K matrix where N is the number of measurements. Each row of the matrix contains a measurement vector. The number of columns, K, must match the measurement dimensions of the motion model. This computation takes into account the covariance of the predicted state and the process noise.

Output Arguments

collapse all

Distances between measurements and filter predictions, returned as a row vector. Each element corresponds to a distance between the predicted measurement coming from the abfilter object and a row of zMatrix.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2018b

See Also

Functions

Objects