getYield {mizer} | R Documentation |
Calculate the rate at which biomass of each species is fished
Description
This yield rate is given in grams per year. It is calculated at each time step saved in the MizerSim object.
Usage
getYield(object)
Arguments
object |
An object of class |
Details
The yield rate for species
at time
is defined as
where is the fishing mortality of an individual of
species
and weight
at time
and
is the
abundance density of such individuals. The factor of
converts the
abundance density into a biomass density and the integral aggregates the
contribution from all sizes.
The total catch in a time period from to
is the integral
of the yield rate over that period:
In practice, as the yield rate is only available
at the saved times, one can only approximate this integral by averaging over
the available yield rates during the time period and multiplying by the time
period. The less the yield changes between the saved values, the more
accurate this approximation is. So the approximation can be improved by
saving simulation results at smaller intervals, using the t_save
argument
to project()
. But this is only a concern if abundances change quickly
during the time period of interest.
Value
If called with a MizerParams object, a vector with the yield rate in grams per year for each species in the model. If called with a MizerSim object, an array (time x species) containing the yield rate at each time step for all species.
See Also
Other summary functions:
getBiomass()
,
getDiet()
,
getGrowthCurves()
,
getN()
,
getSSB()
,
getYieldGear()
Examples
yield <- getYield(NS_sim)
yield[c("1972", "2010"), c("Herring", "Cod")]
# Running simulation for another year, saving intermediate time steps
params <- setInitialValues(getParams(NS_sim), NS_sim)
sim <- project(params, t_save = 0.1, t_max = 1,
t_start = 2010, progress_bar = FALSE)
# The yield rate for Herring decreases during the year
getYield(sim)[, "Herring"]
# We get the total catch in the year by averaging over the year
sum(getYield(sim)[1:10, "Herring"] / 10)