natural_quintic_spline: Estimate natural quintic spline with known first derivatives

View source: R/quintic-spline.R

natural_quintic_splineR Documentation

Estimate natural quintic spline with known first derivatives

Description

Estimate a natural quintic spline from known values of the function and its derivatives: that is, estimate the second derivative of the spline at each knot to ensure a continuous third derivative and a zero third derivative at the extremities.

Usage

natural_quintic_spline(xk, yk, sk)

Arguments

xk

A vector of interpolation points.

yk

A vector of values at each interpolation point.

sk

A vector of slopes at each interpolation point.

Value

The vector ak of second derivatives at each knot.

Author(s)

Thomas Blanchet, Juliette Fournier, Thomas Piketty


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