clamped_cubic_spline: Estimate a natural cubic spline with first derivative clamped...

View source: R/cubic-spline.R

clamped_cubic_splineR Documentation

Estimate a natural cubic spline with first derivative clamped at the last point

Description

Estimate a natural cubic spline from known values of the function: that is, estimate the first derivative of the spline at each knot to ensure a continuous second derivative, a zero second derivative at the first point, and a given first derivative at the last point.

Usage

clamped_cubic_spline(xk, yk, sn)

Arguments

xk

A vector of interpolation points.

yk

A vector of values at each interpolation point.

sn

Derivative at the last knot.

Value

The vector sk of first derivatives at each knot.

Author(s)

Thomas Blanchet, Juliette Fournier, Thomas Piketty


thomasblanchet/gpinter documentation built on Nov. 29, 2022, 4:32 a.m.