View source: R/04-predator-energy-density.R
| calculate_final_weight_fb4 | R Documentation |
Main function for calculating final weight from energy balance
calculate_final_weight_fb4(
initial_weight,
net_energy,
spawn_energy = 0,
processed_predator_params,
day = 1
)
initial_weight |
Initial weight (g) |
net_energy |
Net available energy (J) |
spawn_energy |
Energy lost to reproduction (J) |
processed_predator_params |
Processed predator parameters |
day |
Current day |
A named list with three elements:
Numeric scalar. Fish weight (g) at end of day,
after accounting for net energy and reproductive losses. Minimum
value is 0.01 g.
Numeric scalar. Energy density (J/g)
corresponding to final_weight.
Numeric scalar. Change in weight (g) during the
day (final_weight - initial_weight); negative values indicate
weight loss.
# PREDEDEQ 3: power function, positive net energy (weight gain)
params <- list(PREDEDEQ = 3, Alpha1 = 4800, Beta1 = 0.1)
calculate_final_weight_fb4(initial_weight = 100, net_energy = 500,
processed_predator_params = params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.