R/Class-SimParamBee.R
swarmPFun.Rd
Sample the swarm proportion - the proportion of workers that
swarm - used when p = NULL
(see SimParamBee$swarmP
).
This is just an example. You can provide your own functions that satisfy your needs!
swarmPUnif(colony, n = 1, min = 0.4, max = 0.6)
integer, number of samples
numeric, lower limit for swarmPUnif
numeric, upper limit for swarmPUnif
numeric, swarm proportion
swarmPUnif
samples from a uniform distribution between values
0.4 and 0.6 irrespective of colony strength.
The nWorkersFull
default value used in this function is geared
towards a situation where we simulate ~100 workers per colony (down-scaled
simulation for efficiency). If you simulate more workers, you should change
the default accordingly.
SimParamBee
field swarmP