get_path: Get a path from the output of a particle filter

View source: R/get_path.R

get_pathR Documentation

Get a path from the output of a particle filter

Description

Get a path from the output of a particle filter by tracing an ancestry.

Usage

get_path(model, discretization, xtrajectory, ancestries, ancestor)

Arguments

model

a list representing a hidden Markov model, e.g. hmm_ornstein_uhlenbeck

discretization

list containing stepsize, nsteps, statelength and obstimes

xtrajectory

an array of particle states, of size statelength x xdimension x nparticles

ancestries

a matrix of ancestor indexes, of size statelength x nparticles

ancestor

an ancestor index at the terminal step

Value

a matrix containing a new trajectory of size xdimension x statelength.


jeremyhengjm/UnbiasedScore documentation built on Nov. 17, 2023, 1:48 a.m.