Sample the downsize proportion - proportion of removed workers in downsizing - used when p = NULL (see SimParamBee$downsizeP).

This is just an example. You can provide your own functions that satisfy your needs!

downsizePUnif(colony, n = 1, min = 0.8, max = 0.9)

Arguments

colony

Colony-class

n

integer, number of samples

min

numeric, lower limit for downsizePUnif

max

numeric, upper limit for downsizePUnif

Value

numeric, downsize proportion

See also

SimParamBee field downsizeP

Examples

downsizePUnif()
#> [1] 0.8807791
downsizePUnif()
#> [1] 0.818451
p <- downsizePUnif(n = 1000)
hist(p, breaks = seq(from = 0, to = 1, by = 0.01), xlim = c(0, 1))