times: numeric vector. Optional times at which the temperatures where measured, if not given, hourly temperatures will be assumed
A0: numeric. Parameter A0 of the dynamic model
A1: numeric. Parameter A1 of the dynamic model
E0: numeric. Parameter E0 of the dynamic model
E1: numeric. Parameter E1 of the dynamic model
slope: numeric. Slope parameter for sigmoidal function
Tf: numeric. Transition temperature (in degree Kelvin) for the sigmoidal function
s1: numeric. Slope of transition from chill to heat accumulation
Tu: numeric. GDH optimal temperature
Tb: numeric. GDH base temperature (lower threshold)
Tc: numeric. GDH upper temperature (upper threshold)
yc: numeric. Critical value defining end of chill accumulation
Delta: numeric. Width of Gaussian heat accumulation model
Imodel: integer. Heat accumulation model: 0 for GDH and 1 for Gaussian
zc: numeric. Critical value of z determining the end of heat accumulation
stopatzc: boolean. If TRUE, the PhenoFlex is applied until the end of the temperature series. Default is to stop once the value zc has been reached.
deg_celsius: boolean. whether or not the temperature vector and the model temperature parameters are in degree Celsius (Kelvin otherwise)
basic_output: boolean. If TRUE, only the bloomindex is returned as a named element of the return list.
Returns
A list is returned with named element bloomindex, which is the index at which blooming occurs. When basic_output=FALSE also x, y, z and xs are returned as named element of this list, which are numeric vectors of the same length as the input vector temp containing the hourly temperatures.