rpa_control_edgeweight {wdnet} | R Documentation |
Control weight of new edges. Defined for rpanet
.
Description
Control weight of new edges. Defined for rpanet
.
Usage
rpa_control_edgeweight(sampler = NULL)
Arguments
sampler |
A function used for sampling edge weights. If |
Value
A list of class rpacontrol
containing the sampler
function.
Examples
# Sample edge weights from Gamma(5, 0.2).
my_gamma <- function(n) rgamma(n, shape = 5, scale = 0.2)
control <- rpa_control_edgeweight(
sampler = my_gamma
)
[Package wdnet version 1.2.3 Index]