Temperature limitation on growth
T_lim.Rd
Given species parameters, returns the relative limitation on growth rate according to a CTMI curve: $$\begin{array}[ccc] T_{lim} &=& \frac{(T_c-T_{max})(T_c-T_{min})^2}{(T_{opt}-T_{min})[(T_{opt}-T_{min})(T_c-T_{opt})-(T_{opt}-T_{max})(T_{opt}+T_{min}-2T_c)]} \end{array}$$
Examples
my_seaweed <- c(T_opt = 20, T_min = 5, T_max = 30)
T_lim(Tc = 22, spec_params = my_seaweed)
#> [1] 0.9633333
T_range <- 1:30
sapply(T_range, T_lim, spec_params = my_seaweed)
#> [1] 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.02000000
#> [7] 0.07215686 0.14666667 0.23578947 0.33333333 0.43428571 0.53454545
#> [13] 0.63072464 0.72000000 0.80000000 0.86871795 0.92444444 0.96571429
#> [19] 0.99126437 1.00000000 0.99096774 0.96333333 0.91636364 0.84941176
#> [25] 0.76190476 0.65333333 0.52324324 0.37122807 0.19692308 0.00000000