Skip to content


class Sampler < Object

Abstract sampler.

Member Variables

Name Description
nsamples:Integer Number of samples to draw.
ncheckpoints:Integer? Number of checkpoints for which to run the model. The interpretation of this is model-dependent, e.g. for MarkovModel or StateSpaceModel it is the number of states, in other cases it may be the number of observations. If not given, the model to run to termination.
verbose:Boolean Enable verbose reporting on the terminal?

Member Functions

Name Description
sample Sample the model.

Member Function Details


function sample(m:Model) -> (Model, Real)

Sample the model.

  • m: Archetype.

Return: a weighted sample.