View source: R/temperature_interpolation.R
build_temperature_interpolator | 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
approxfun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.