Skip to content

ForwardModel

class ForwardModel < Model

Forward model. To simulate the model, first use start(), followed by step() any number of times.

Member Variables

Name Description
t:Integer Current step.

Member Functions

Name Description
start Start.
step Step.
rewind Rewind to start.
size Number of steps.
propose Update the model with parameters proposed using another model - x: Previous model Returns: a tuple giving the proposal weight of the previous model given the new model and of the new model given the previous model.

Member Function Details

propose

function propose(x:ForwardModel) -> (Real, Real)

Update the model with parameters proposed using another model

  • x: Previous model

Returns: a tuple giving the proposal weight of the previous model given the new model and of the new model given the previous model.

rewind

function rewind()

Rewind to start.

size

function size() -> Integer

Number of steps.

start

function start() -> Real

Start.

step

function step() -> Real

Step.