sample_link_nodes {SeqNet} | R Documentation |
Sample link nodes for new module
Description
Sample link nodes for new module
Usage
sample_link_nodes(
n,
nodes,
degree,
alpha = 100,
beta = 1,
epsilon = 10^-5,
...
)
Arguments
n |
The number of link nodes to sample. |
nodes |
The nodes to sample from. |
degree |
The degree of each node. |
alpha |
A positive value used to parameterize the Beta distribution. |
beta |
A positive value used to parameterize the Beta distribution. |
epsilon |
Used when sampling link nodes. |
... |
Additional arguments are ignored. |
Value
A vector of selected nodes (possibly of length 1).
Note
This function is used by create_modules_for_network
and is not meant to be used externally.
[Package SeqNet version 1.1.3 Index]