golib  0.5
goMath::CubicSpline< T > Class Template Reference

Cubic interpolating splines. More...

#include <gocubicspline.h>

Public Member Functions

 CubicSpline (const goMath::Matrix< T > &points)
 
 CubicSpline (const goMath::Vector< T > &pm1, const goMath::Vector< T > &p0, const goMath::Vector< T > &p1, const goMath::Vector< T > &p2)
 
goAutoPtr< goMath::Vector< T > > operator() (T t) const
 
bool eval (T t, goMath::Vector< T > &ret) const
 
bool D (T t, goMath::Vector< T > &ret) const
 
integrate (T t1, T t2)
 Integrate the function interpolated by this object. More...
 
bool fit (const goMath::Matrix< T > &points)
 
bool fit (const goMath::Vector< T > &pm1, const goMath::Vector< T > &p0, const goMath::Vector< T > &p1, const goMath::Vector< T > &p2)
 

Detailed Description

template<class T>
class goMath::CubicSpline< T >

Cubic interpolating splines.

Member Function Documentation

◆ integrate()

template<class T >
T goMath::CubicSpline< T >::integrate ( t1,
t2 
)

Integrate the function interpolated by this object.

This makes only sense when the interpolating spline represents a one dimensional function.

Parameters
t1Start point of integration
t2End point of integration
Returns
$ \int_{t_1}^{t_2} f(x) \, dx$

The documentation for this class was generated from the following files: