Helper function that returns an array (species x size) of boolean values indicating whether that size bin is within the size limits specified by the arguments.
get_size_range_array( params, min_w = min(params@w), max_w = max(params@w), min_l = NULL, max_l = NULL, ... )
params | MizerParams object |
---|---|
min_w | Smallest weight in size range. Defaults to smallest weight in the model. |
max_w | Largest weight in size range. Defaults to largest weight in the model. |
min_l | Smallest length in size range. If supplied, this takes
precedence over |
max_l | Largest length in size range. If supplied, this takes precedence
over |
... | Unused |
Boolean array (species x size)
If `min_l` is specified there is no need to specify `min_w` and so on. However, if a length is specified (minimum or maximum) then it is necessary for the species parameter data.frame to include the parameters `a` and `b` that determine the relation between length \(l\) and weight \(w\) by $$w = a l^b.$$
It is possible to mix length and weight constraints, e.g. by supplying a minimum weight and a maximum length. The default values are the minimum and maximum weights of the spectrum, i.e. the full range of the size spectrum is used.