mysplinefun: Compute spline function

View source: R/BMArho.R

mysplinefunR Documentation

Compute spline function

Description

This function is similar to splinefun but it returns 0 outside the range of x.

Usage

mysplinefun(x, y = NULL, method = c("fmm", "periodic", "natural", "monoH.FC")[1],
   ties = mean)

Arguments

x

x-values to use in the interpolation.

y

y-values to use in the interpolation (optional).

method

Method used to compute the spline. See splinefun for details.

ties

Handling of tied 'x' values. See splinefun for details.

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.

Value

Returns a function with x and deriv arguments. See splinefun for details.

Author(s)

Virgilio Gómez-Rubio <virgilio.gomez@uclm.es>

See Also

splinefun


INLABMA documentation built on Nov. 18, 2023, 5:13 p.m.

Related to mysplinefun in INLABMA...