View source: R/getFirstGeneration.R
getFirstGeneration | R Documentation |
Calculate First Generation Timings. This function calculates the timings for the first generation of a population based on initial conditions, thermal requirements, and temperature data.
getFirstGeneration(npop, t0, t1, params, stump_temp, lavalst)
npop |
A single numeric value representing the population size. |
t0 |
A numeric vector of length 'npop' containing the initial starting day for each individual. |
t1 |
A numeric vector of length 'npop' containing the thermal requirement (in degree days) for each individual. |
params |
A list containing various model parameters, such as threshold temperatures and time limits. |
stump_temp |
A list containing stump temperature data, including 10-day moving averages (s10). |
lavalst |
A numeric vector of length 'npop' initialized with zeros, to store the calculated day when each individual reaches the larval stage. |
A list containing:
today
: A single numeric value representing the last calculated day for the final individual in the population.
lavalst
: A numeric vector of length 'npop' containing the calculated day when each individual reaches the larval stage.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.