build_temperature_interpolator {bioinactivation} | R Documentation |
Builds an interpolator of the temperature at each time and its first
derivative.
First derivatives are approximated using forward finite
differences (approxfun
). It is assumed that temperature is 0
and constant outside the time interval provided.
build_temperature_interpolator(temperature_data)
temperature_data |
data frame with the values of the temperatures at each value of time. It need to have 2 columns, named time and temperature. |
a list with with two elements:
temp, the interpolator of the temperature and
dtemp, the interpolator of its first derivative