This function is similar to splinefun but it returns 0
outside the range of x.
mysplinefun(x, y = NULL, method = c("fmm", "periodic", "natural", "monoH.FC")[1],
ties = mean)x-values to use in the interpolation.
y-values to use in the interpolation (optional).
Method used to compute the spline. See splinefun for details.
Handling of tied 'x' values. See splinefun for details.
Returns a function with x and deriv arguments. See splinefun for details.
This function calls splinefun and returns a function
with the fitted spline. The main difference is that this new function
returns 0 outside the range of 0.