distance_spline: Distance between two quintic splines

View source: R/formulas.R

distance_splineR Documentation

Distance between two quintic splines

Description

Calculate the distance between two quintic splines, as measured by the integral of the square of the difference. Also calculates the derivatives of that distance with respect to the spline parameters of the second function.

Usage

distance_spline(
  x0,
  x1,
  y0,
  y1,
  s0,
  s1,
  a0,
  a1,
  y0new,
  y1new,
  s0new,
  s1new,
  a0new,
  a1new
)

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.

y0new

Value of the spline at x0 for the first spline.

y1new

Value of the spline at x1 for the first spline.

s0new

Slope of the spline at x0 for the first spline.

s1new

Slope of the spline at x1 for the first spline.

a0new

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

a1new

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.