Learn R Programming

FVDDPpkg (version 0.1.2)

propagate: Propagate the Fleming-Viot latent signal in time

Description

Propagate the Fleming-Viot latent signal in time

Usage

propagate(fvddp, delta.t)

Value

A list of the same class to the one given as an input (fvddp). The amount of rows of the matrix M, as well as the vector of weights, w, will increase. The hyperparameters will be the same.

Arguments

fvddp

An instance of class generated via initialize(). In order to perform the propagation, the FVDDP has to be fed some data using update(), at least once.

delta.t

The non-negative time of the propagation. If 0, the returned process is the input.

References

PapaspiliopoulosRuggieroSpanò2016FVDDPpkg

See Also

approx.propagate() for a (faster) Monte-Carlo-based analogous.

Examples

Run this code
FVDDP = initialize(1, function(x) rpois(x, 3),
                   function(x) dpois(x, 3), TRUE)
FVDDP = update(FVDDP, c(4,5))
propagate(FVDDP, 0.2)

FVDDP = initialize(3, function(x) rnorm(x, -1,3),
                   function(x) dnorm(x, -1, 3), FALSE)
FVDDP = update(FVDDP, c(-1.145, 0.553, 0.553, 0.553))
propagate(FVDDP, 0.6)

Run the code above in your browser using DataLab