As defined in: Basler et al. 2016 (Agr. For. Meteorlogy)

triangular_temperature_response(T = -10:45, T_opt = 10, T_min = 1, T_max = 15)

Arguments

T

a vector or matrix of temperatures

T_opt

optimal temperature

T_min

minimum viable temperature

T_max

maximum viable temperature

Examples


T_response = triangular_temperature_response(T = 0:45)
if (FALSE) {
plot(0:45, T_response, type = "l")
}