getStateEstimate
Extract best state estimate and covariance from particles
Description
returns the best state estimate based on the current set of particles. The estimate
is extracted based on the State = getStateEstimate(pf)StateEstimationMethod property from the
particleFilter object,
pf.
[ also returns the covariance of
the state estimate. The covariance is a measure of the uncertainty of the state
estimate. Not all state estimation methods support covariance output. In this case,
State,StateCovariance]
= getStateEstimate(pf)getStateEstimate returns StateCovariance
as [ ].
The State and StateCovariance information
can directly be accessed as properties of the particle filter object pf, as
pf.State and pf.StateCovariance. However,
when both these quantities are needed, using the
getStateEstimation method with two output arguments is more
computationally efficient.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b