Description Usage Arguments Value Examples
View source: R/generate_random_lambda.R
Given a K_a
type a clusters, and K_b
type b clusters and a random
generator for average number of connections between nodes, generates a tibble
that encodes all pairs of cluster types and the average number of connections
between them.
1 | generate_random_lambda(K_a, K_b, random_generator = runif)
|
K_a |
Number of clusters for node type a |
K_b |
Number of clusters for node type b |
random_generator |
Function used to generate average connection values. Defalts to just |
Tibble with three columns: a
for id of a node cluster, b
for id of b node cluster, and avg_num_cons
for the average number of connection between two nodes in cluster a and b respectively.
1 | generate_random_lambda(K_a = 3, K_b = 2, random_generator = function(n) rpois(n, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.