update: Update weights

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/update.R

Description

Each particle is given a different weight based on how close each particle is to the data point by using the likelihood.

Usage

1
2
3
4
5
6
7
update(obj, ...)

## S3 method for class 'pframe_1d'
update(obj, dist_g, params_g, ...)

## Default S3 method:
update(obj)

Arguments

obj

Object of pframe_1d class

Details

In genetic algorithms, these functions are part of selection/updating

Value

Object of pframe_1d class

Note

One must becareful of particle degeneracy. Occasionally, all weight is given to one particle only. This usually occurs when the state model does not conform with the data.

Author(s)

Justin Thong justinthong93@gmail.com

See Also

particle

Examples

1

tintinthong/pfilter documentation built on May 24, 2019, 9:55 a.m.