linfun {IBMPopSim} | R Documentation |
Linear interpolation function.
Description
Return a function performing the linear interpolation.
Usage
linfun(x, y, yleft = y[1], yright = y[length(y)])
Arguments
x , y |
Numeric vectors giving the coordinates of the points to be interpolated. |
yleft |
The value to be returned when input |
yright |
The value to be returned when input |
Details
A C++ version of this function is available. See vignette('IBMPopSim_cpp')
for more details.
Value
Objet of class linfun
and function
which is an approxfun
function with method = 'linear'
.
[Package IBMPopSim version 1.0.0 Index]