Sample the swarm proportion - the proportion of workers that
swarm - used when
p = NULL (see
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
numeric, upper limit for
numeric, swarm proportion
swarmPUnif samples from a uniform distribution between values
0.4 and 0.6 irrespective of colony strength.
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.