build_temperature_interpolator: Continuum Interpolation of Discrete Temperatures Values

View source: R/temperature_interpolation.R

build_temperature_interpolatorR Documentation

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)

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.

Value

a list with with two elements:

  • temp, the interpolator of the temperature and

  • dtemp, the interpolator of its first derivative

See Also

approxfun


albgarre/bioinactivation documentation built on Nov. 27, 2022, 9:19 a.m.