This class implements a marginal Gibbs sampler for a Dirichlet process prior on the mean of a Poisson distributed random variable, with a Gamma-distributed base function.
R6Class with methods for updating a DirichletProcessNode instance.
The marginal Gibbs sampler is based on the description in Gelman et al. Bayesian Data Analysis, 3rd edition, Chapter 23.
Please note that no checks are performed as to the suitability of this algorithm for a particular StochasticNode. It is up to the user to use the correct update algorithm for the appropriate nodes.
constructor takes an instance of a DirichletProcessNode
when called, updates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.