particleFilter.weights
Select the weighting scheme for a particle filter
Syntax
Description
obj = obj.weights(‘bayes’)
Computes particle filter weights using Bayes’s formula. This is the default weighting scheme for the particle filter.
Computes particle filter weights to implement an average over the best N particles. The N best particles receive a weight of 1/N, all other particles receive a weight of 0.
Input Arguments
N
scalar positive integer
The number of best particles to use when computing the best N weights.
Output Arguments
obj
scalar particleFilter object
The particle filter with an updated weighting scheme.