monotonic_cspline: Monotonic cubic spline

View source: R/splines.R

monotonic_csplineR Documentation

Monotonic cubic spline

Description

Monotonic cubic spline

Usage

monotonic_cspline(x, y, pos)

Arguments

x

Abscissas of the knots

y

Ordinates of the knots

pos

Requested positions

Value

An array corresponding to the values of the spline at the requested positions

Examples

s<-monotonic_cspline(x = c(0,.2,.3, .9,.95), y= c(1,3,5,8,12), pos=seq(0,1,0.01))
plot(s, type='l')

palatej/rjd3toolkit documentation built on April 17, 2025, 10:47 p.m.