downsizePUnif {SIMplyBee}R Documentation

Sample the downsize proportion - proportion of removed workers in downsizing

Description

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!

Usage

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()
downsizePUnif()
p <- downsizePUnif(n = 1000)
hist(p, breaks = seq(from = 0, to = 1, by = 0.01), xlim = c(0, 1))

[Package SIMplyBee version 0.3.0 Index]