+.rpacontrol {wdnet} | R Documentation |
Add components to the control list
Description
'+' is used to combine components to control the PA network generation
process. Available components are rpa_control_scenario()
,
rpa_control_edgeweight()
, rpa_control_newedge()
,
rpa_control_preference()
and rpa_control_reciprocal()
.
Usage
## S3 method for class 'rpacontrol'
e1 + e2
Arguments
e1 |
A list of class |
e2 |
A list of class |
Value
A list of class rpacontrol
with components from e1
and
e2
.
Examples
control <- rpa_control_scenario(alpha = 0.5, beta = 0.5) +
rpa_control_preference(
ftype = "customized",
spref = "pow(outs, 2) + 1",
tpref = "pow(ins, 2) + 1"
)
control <- rpa_control_scenario(alpha = 1) +
rpa_control_edgeweight(
sampler = function(n) rgamma(n, shape = 5, scale = 0.2)
)
[Package wdnet version 1.2.3 Index]