sample_dcpp | R Documentation |
Sample from a degree-corrected planted partition model
sample_dcpp( n, lambda, K, oir, theta = NULL, pri = rep(1, K)/K, normalize_theta = FALSE )
n |
number of nodes |
lambda |
average degree |
K |
number of communities |
oir |
out-in ratio |
theta |
propensity parameter, if not given will be samples from a Pareto distribution with scale parameter 2/3 and shape parameter 3 |
pri |
prior distribution of node labels |
normalize_theta |
whether to normalize theta so that max(theta) == 1 |
an adjacency matrix following a degree-corrected planted parition model
sample_dcsbm, sample_tdcsbm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.