CubicSpline

Description

This function creates spline using the set of points and interpolates the input between them.

First and second derivatives from the spline can be calculated by using the derivative1D function.

CubicSpline function takes a set of attributes and a set of parameters. The first attrbiute is ‘n’ which has integer type and sets the number of interpolation points. The parameter names have the form ‘yi’ where ‘y’ is letter ‘y’ and ‘i’ is the parameter’s index starting from 0 and have the type double. Likewise, the attribute names have the form ‘xi’.

Attributes (non-fitting parameters)

Name Type Default Description
n      
x0      
x1      
x2      

Properties (fitting parameters)

Name Default Description
y0 0.0  
y1 0.0  
y2 0.0  

Categories: FitFunctions | Background

Source

C++ source: CubicSpline.cpp

C++ header: CubicSpline.h