Main Content

prune

Prune the filter by removing selected components

Description

prune(phd,pruneIndices) removes components in phd filter object, phd, specified by pruneIndices.

Input Arguments

collapse all

phd filter, specified as a ggiwphd filter object or a gmphd filter object.

Example: phd

Data Types: object

Indices of components to be pruned, specified as an 1-by-N logical vector, where N is the number of components in the density. If the ith element of the vector is 1 instead of 0, then the ith component will be removed from the density.

Example: [0 1 0 1 0 0]

Data Types: logical

Extended Capabilities

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

Version History

Introduced in R2019a