sampler.dp: Dirichlet process sampler

Description Usage Arguments Value See Also Examples

View source: R/sampler.R

Description

Dirichlet process sampler

Usage

1

Arguments

currsbm

the current state of the sampler

edges

an edges object

sbmmod

an sbmmod model

sigma

random walk parameter for theta

Value

next state of currsbm object

See Also

For full algorithm details see http://doi.org/10.17635/lancaster/thesis/296

Examples

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)

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.