Approximating cubic spline
C++ port of the gnuplot acspline routine
typedef T ACSpline< T >::value_type |
ACSpline< T >::ACSpline | ( | const MArray< T, 1 > & | x, | |
const MArray< T, 1 > & | y, | |||
const MArray< T, 1 > & | sigma, | |||
const T | smooth | |||
) | [inline] |
References ACSpline< T >::calculateCoefficients().
ACSpline< T >::ACSpline | ( | const MArray< T, 1 > & | x, | |
const MArray< T, 1 > & | y, | |||
const T | smooth | |||
) | [inline] |
References ACSpline< T >::calculateCoefficients().
T ACSpline< T >::evaluate | ( | const T | x | ) | const [inline] |
evaluate the spline at position x
References ACSpline< T >::coeff_, ACSpline< T >::find_index(), and ACSpline< T >::X.
Referenced by ACSpline< T >::operator()().
T ACSpline< T >::operator() | ( | const T | x | ) | const [inline] |
evaluate the spline at position x
References ACSpline< T >::evaluate().
T ACSpline< T >::evaluate | ( | const T | x, | |
T * | dfdx1, | |||
T * | dfdx2 | |||
) | const [inline] |
evaluate the spline at position x
, and return the first and second derivatives in dfdx1
and dfdx2
, respectively. either may be NULL
in which case the derivative is not evaluated.
References ACSpline< T >::coeff_, ACSpline< T >::find_index(), and ACSpline< T >::X.
int ACSpline< T >::find_index | ( | const MArray< T, 1 > & | X, | |
const T | x | |||
) | const [inline] |
References ACSpline< T >::X.
Referenced by ACSpline< T >::evaluate().
void ACSpline< T >::calculateCoefficients | ( | const MArray< T, 1 > & | x, | |
const MArray< T, 1 > & | y, | |||
const MArray< T, 1 > & | sigma | |||
) | [inline, protected] |
References ACSpline< T >::coeff_, ACSpline< T >::solve_five_diag(), and ACSpline< T >::X.
Referenced by ACSpline< T >::ACSpline().
void ACSpline< T >::solve_five_diag | ( | const MArray< double, 2 > & | m, | |
const MArray< double, 1 > & | r, | |||
MArray< double, 1 > & | q | |||
) | [inline, protected] |
Referenced by ACSpline< T >::calculateCoefficients().
Referenced by ACSpline< T >::calculateCoefficients(), and ACSpline< T >::evaluate().
Referenced by ACSpline< T >::calculateCoefficients(), ACSpline< T >::evaluate(), and ACSpline< T >::find_index().