Direct Grid Sampler (DGS)

Implementation of a sampler for the simulation of draws from discrete univariate distributions with finite supports. Draws are simulated directly from the individual full conditional probability mass functions for each of the specified model parameters.

Sampler Constructor


Construct a Sampler object for direct grid sampling. Parameters are assumed to have discrete uniform distributions with finite supports.


  • params : stochastic nodes to be updated with the sampler.


Returns a Sampler type object.


See the Eyes example.