Spline Continuity and End Conditions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Spline Continuity and End Conditions

  

This help page describes the interpolating, continuity, and end conditions used in CurveFitting[Spline].

  

The form of the resulting piecewise function returned depends on whether the degree d is odd or even, and whether or not the knots='data' option is specified in the even case.

 

Odd Degree

Even Degree

Even degree with knots='data'

Examples

Odd Degree

  

The resulting function created by CurveFitting[Spline] is of the form , where the n spline sections  are polynomials of degree at most d. These polynomials are given by the following  conditions:

2n Interpolating Conditions

• 

Force continuity at the knots.

(d-1)(n-1) Continuity Conditions

• 

Force continuity of the derivatives of order  at the knots.

d-1 End Conditions

• 

Natural splines specified by endpoints='natural'.

  

Equate the derivates of order  at the end nodes to zero.

• 

Not-a-knot splines specified by endpoints='notaknot'.

  

Force the continuity of the dth derivative at the knots , for  and .

• 

Periodic splines specified by endpoints='periodic'.

  

Match the derivatives of order  at the end nodes.

• 

Clamped splines specified by endpoints=V.

  

Equate the derivates of order  at the end nodes to the specified values given in V, where V is either a list, Vector, or an Array, of dimension  containing the specified clamped conditions. Specifically,

• 

Generalized splines given by endpoints=G.

  

Generalized end conditions can be specified involving any arbitrary linear combination of the values of the derivatives (of any order  at the nodes , , , and , where ). Such end conditions can be represented by a linear system of the form , where  is a vector of dimension , with

  

 is the corresponding coefficient matrix of dimension  by  and , a vector of dimension , represents the right-hand side of the linear system.

  

Generalized end conditions are specified with the optional parameter endpoints=G, where  is a Matrix or an Array. Here,  represents the augmented linear system , having dimensions  by .

Even Degree

  

Without the knots='data' option, the resulting function created by CurveFitting[Spline] is of the form , where , for  (that is, the spline knots are defined at the midpoints of the nodes) and the  spline sections  are polynomials of degree at most d. These polynomials are specified by the following  conditions.

n+1 Interpolating Conditions at the Nodes

• 

Force continuity at the nodes.

n Interpolating Conditions at the Knots

• 

Force continuity at the knots.

(d-1)n Continuity Conditions

• 

Force continuity of the derivatives of order  at the knots.

d End Conditions

• 

Natural splines specified by endpoints='natural'.

  

Equate the derivates of order  at the end nodes to zero.

• 

Not-a-knot splines specified by endpoints='notaknot'.

  

Force the continuity of the dth derivative at the knots , for  and .

• 

Periodic splines specified by endpoints='periodic'.

  

Match the derivatives of order  at the end nodes.

• 

Clamped splines specified by endpoints=V.

  

Equate the derivates of order  at the end nodes to the specified values given in V, where V is either a list, Vector, or an Array, of dimension  containing the specified clamped conditions. Specifically,

• 

Generalized splines specified by endpoints=G.

  

Generalized end conditions can be specified involving any arbitrary linear combination of the values of the derivatives (of any order  at the nodes  and ). Such end conditions can be represented by a linear system of the form , where  is a vector of dimension , with

  

 is the corresponding coefficient matrix of dimension  by  and , a vector of dimension , represents the right-hand side of the linear system.

  

Generalized end conditions are specified with the optional parameter endpoints=G, where  is a Matrix or an Array. Here,  represents the augmented linear system , having dimensions  by .

Even degree with knots='data'

  

With the knots='data' option included, CurveFitting[Spline] will avoid creating knots at the midpoints of the nodes, and instead use the nodes for the knots in the even case.  The resulting function is of the form , where the n spline sections  are polynomials of degree at most d. These polynomials are given by the following  conditions:

2n Interpolating Conditions

• 

Force continuity at the knots.

(d-1)(n-1) Continuity Conditions

• 

Force continuity of the derivatives of order  at the knots.

d-1 End Conditions

• 

Natural splines specified by endpoints='natural'.

  

Equate the derivates of order  at the left end node and the derivatives of order  at the right end node to zero.

• 

Not-a-knot splines specified by endpoints='notaknot'.

  

Force the continuity of the dth derivative at the knots , for  and .

Examples

(1)

A quintic spline using the 'natural' end condition.

(2)

A cubic spline using the 'periodic' end condition.

(3)

A quadratic spline using the 'notaknot' end condition.

(4)

A clamped cubic spline with slope A and B at the two end nodes.

(5)

A cubic spline using the generalized end conditions with second derivative equal to 5 at the end nodes.

(6)

See Also

CurveFitting

CurveFitting[Spline]

 


Download Help Document