8.14.7 NaturalSpline class: A class representing a natural spline.

The NaturalSpline class has this constructor:

class NaturalSpline( pts,endcond=['notaknot','notaknot'],closed=False)
Create a natural spline through the given points.

pts specifies the coordinates of a set of points. A natural spline is constructed through this points. endcond specifies the end conditions in the first, resp. last point. It can be 'notaknot' or 'secder'. With 'notaknot', maximal continuity (up to the third derivative) is obtained between the first two splines. With 'secder', the spline ends with a zero second derivative. If closed is True, the spline is closed, and endcond is ignored.

NaturalSpline objects have the following methods:

compute_coefficients( )

sub_points( t,j)