View source: R/04-predator-energy-density.R
| predator_energy_eq1 | R Documentation |
Retrieves energy density from pre-calculated daily data.
The function accesses both energy_data[day] (start of day) and
energy_data[day + 1] (end of day) during weight calculations,
so the vector must have n_days + 1 elements (e.g., 366 for a
365-day simulation: indices 1 to 366 represent days 0 to 365).
predator_energy_eq1(weight, day, energy_data)
weight |
Fish weight (g) - not used in this equation |
day |
Simulation day (integer, 1-based) |
energy_data |
Numeric vector of energy densities (J/g). Must have
length |
Energy density (J/g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.