Description Usage Arguments Value See Also Examples
Dirichlet process sampler
1 | sampler.dp(currsbm, edges, sbmmod, sigma)
|
currsbm |
the current state of the sampler |
edges |
an |
sbmmod |
an |
sigma |
random walk parameter for theta |
next state of currsbm
object
For full algorithm details see http://doi.org/10.17635/lancaster/thesis/296
1 2 3 4 | model <- sbmmod(crp(4), param_norm(0,0,1,1,3,3,1,1), edges_norm())
trueSBM <- model$r(100)
Edges <- redges(trueSBM, model$edge)
dp_out <- sampler(Edges, model, 25, "dp", sigma=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.