Return a data frame, matrix or vector which linearly interpolates data from a given matrix or data frame.
1 2 3 4 5 6 7 8 9
a matrix or data frame with numerical values giving coordinates of points to be interpolated. The first column needs to be in ascending order and is interpreted as independent variable (e.g. time), the remaining columns are used as dependent variables.
a vector (or single value for
optional parameters passed to
an integer describing how interpolation is to take place outside
the interval [min(x), max(x)]. If
The functions can be used for linear interpolation with a complete matrix or
data frame. This can be used for example in the main function of an
odeModel to get input values at a specified time
approxTimeEq1 are less flexible
(only one single value for
xout or/and equidistant values of of time in
and only linear interpolation) but have increased performance. All interpolation
functions are faster if
x is a matrix instead of a data frame.
approxTime returns a matrix resp. data frame of the same
x containing data which interpolate the given data with
approxTime1 is a performance optimized
special version with less options than the original
It returns an interpolated vector.