tension_spline: Tension of a quintic spline

View source: R/formulas.R

tension_splineR Documentation

Tension of a quintic spline

Description

Calculates the tension of a quintic spline, as measured by the square of the integral of the third derivative. Also calculates the derivative of this tension with respect to the second derivative of the spline at each bound.

Usage

tension_spline(x0, x1, y0, y1, s0, s1, a0, a1)

Arguments

x0

Lower bound of the interval.

x1

Upper bound of the interval.

y0

Value of the spline at x0 for the first spline.

y1

Value of the spline at x1 for the first spline.

s0

Slope of the spline at x0 for the first spline.

s1

Slope of the spline at x1 for the first spline.

a0

Second derivative of the spline at x0 for the first spline.

a1

Second derivative of the spline at x1 for the first spline.

Value

The value of the distance or its derivatives.

Author(s)

Thomas Blanchet, Juliette Fournier, Thomas Piketty


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