init_x0: Initialise prior distributions for pframe_1d

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

View source: R/init_x0.R

Description

init_x0 is a method to initialise the prior state of particles in x0 in pframe_1d object.

Usage

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

## S3 method for class 'pframe_1d'
init_x0(obj, dist_x0 = "gaussian", params_x0 = list(mean
  = 0, sd = 1), ...)

## Default S3 method:
init_x0(obj)

Arguments

obj

Object of pframe_1d class

...

optional arguments

dist_x0

Prior distribution (gaussian,t, gamma, etc)

obj

Object of pframe_1d

Value

Updates or initialise pframe_1d with prior distribution.

Note

init_x0 is not needed if all arguments are provided by the constructor pframe_1d. This function is a convenience for user. A proficient user will be able to update or initialise variables by hand.

Author(s)

Justin Thong justinthong93@gmail.com

See Also

project, update and resample

Examples

1

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