sample_dcsbm | R Documentation |
Sample an adjacency matrix from a degree-corrected block model (DCSBM)
sample_dcsbm(z, B, theta = 1)
z |
Node labels (n * 1) |
B |
Connectivity matrix (K * K) |
theta |
Node connectivity propensity vector (n * 1) |
An adjacency matrix following DCSBM
sample_dcpp, fast_sbm, sample_tdcsbm
B = pp_conn(n = 10^3, oir = 0.1, lambda = 7, pri = rep(1,3))$B head(sample_dcsbm(sample(1:3, 10^3, replace = TRUE), B, theta = rexp(10^3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.