get_tp
Gets scaled age and length at puberty, birth
Contents
Syntax
varargout = get_tp(p, f, tel_b, tau)
Description
Obtains scaled ages, lengths at puberty, birth for the std model at constant food, temperature; Assumes that scaled reserve density e always equals f; if third input is specified and its second element is not equal to second input (if specified), get_tpm is run.
Input
- p: 5-vector with parameters: g, k, l_T, v_H^b, v_H^p
- f: optional scalar with functional response (default f = 1)
- tel_b: optional scalar with scaled length at birth
or 3-vector with scaled age at birth, reserve density and length at 0 * tau: optional n-vector with scaled times since birth
Output
- tvel: optional (n,4)-array with scaled time-since-birth, maturity, reserve density and length
- tau_p: scaled age at puberty \tau_p = a_p k_M
- tau_b: scaled age at birth \tau_b = a_b k_M
- lp: scaled length at puberty
- lb: scaled length at birth
- info: indicator equals 1 if successful, 0 otherwise
Remarks
Function get_tp_foetus does the same for foetal development; the result depends on embryonal development. A previous version of get_tp had as optional 3rd input a 2-vector with scaled length, l, and scaled maturity, vH, for a juvenile that is now exposed to f, but previously at another f. Function get_tpm took over this use. Optional inputs might be empty
Example of use
tau_p = get_tp([.5, .1, .1, .01, .2]) or tvel = get_tp([.5, .1, .1, .01, .2],[],[],0:0.014:)