Learn R Programming

bioinactivation (version 1.3.0)

build_temperature_interpolator: Continuum Interpolation of Discrete Temperatures Values

Description

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.

Usage

build_temperature_interpolator(temperature_data)

Value

a list with with two elements:

  • temp, the interpolator of the temperature and

  • dtemp, the interpolator of its first derivative

Arguments

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.

See Also