Skip to content

Particle


class Particle(m:Model, delaySampling:Boolean, delayExpressions:Boolean)

Particle for use with ParticleFilter.

  • m: Model.
  • delaySampling: Enable delayed sampling.
  • delayExpressions: Enable delayed expressions.

Member Variables

Name Description
m:Model State.
h:Handler Event handler.

Member Functions

Name Description
peek Evaluate the log-posterior.
args Get value of real arguments.
grad Compute the gradient with respect to real arguments.
move Move the particle.
label Label generations.
constant Prune generations.

Member Function Details

args

function args() -> Real[_]

Get value of real arguments.

constant

function constant(gen:Integer)

Prune generations.

See also: Expression

grad

function grad() -> Real[_]

Compute the gradient with respect to real arguments.

label

function label(gen:Integer)

Label generations.

See also: Expression

move

function move(x:Real[_]) -> Real

Move the particle.

peek

function peek() -> Real

Evaluate the log-posterior.