particles: Create particles object.

Description Usage Arguments Examples

View source: R/particles-object.R

Description

particles returns a particle with specified names.

Usage

1

Arguments

...

Names and types of object that is being used for each component in a particle.

weights

(Un)normalised weights of particles being created.

Examples

1
2
3
4
num_particles <- 10
len <- 2
rv <- matrix(rnorm(num_particles * len), nrow = num_particles, ncol = len)
prts <- particles(beta = rv)

bonStats/smcdar documentation built on Dec. 19, 2021, 10:47 a.m.