resamp: Resample particles

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

View source: R/resamp.R

Description

Resample particles based on computed weights.

Usage

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

## S3 method for class 'pframe_1d'
resamp(obj, ...)

## Default S3 method:
resamp(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

Since resampling is computationally costly, it be chosen to be done only "sometimes". This is why the effective sample size is used, N_eff

Author(s)

Justin Thong justinthong93@gmail.com

See Also

particle,update

Examples

1

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