get_tx
gets scaled age and length at puberty, weaning, birth for foetal development.
Contents
Syntax
varargout = get_tx (p, f, tel_b, tau)
Description
Obtains scaled age and length at puberty, weaning, birth for foetal development. An extra optional parameter, the stress coefficient for foetal development can modify the rate of development from fast (default, and a large stress coefficient of 1e8) to slow (value 1 gives von Bertalanffy growth of the same rate as post-natal development). Multiply the result with the somatic maintenance rate coefficient to arrive at age at puberty, weaning and birth.
Input
- p: 6 or 7 -vector with parameters: g, k, l_T, v_Hb, v_Hx, v_Hp, s_F
- f: optional (default f = 1)
- scalar with scaled functional response for period bi
- 2-vector with scaled functional responses for periods bx and xi
- (n,2)-array with scaled times and sfunctional responses in the columns- 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_x: scaled age at puberty \tau_x = a_x k_M
- tau_b: scaled age at birth \tau_b = a_b k_M
- lp: scaled length at puberty
- lx: scaled length at weaning
- lb: scaled length at birth
- info: indicator equals 1 if successful, 0 otherwise
Remarks
uses integration over scaled age with event detection; this function replaces get_tx_old
Examples
See predict_Moschus_berezovskii for a gradual change from f_bx to f_xi; and predict_Moschiola_meminna for an instantaneous change