#include <Splines.h>
|
| | SplineBase (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type) |
| | constructor from vectors and type
|
| |
| | SplineBase (const Data2D &data, const GaudiMath::Interpolation::Type type) |
| | constructor from vector of (x,y(x)) pairs
|
| |
| template<class DATAX , class DATAY > |
| | SplineBase (const GaudiMath::Interpolation::Type type, DATAX begin_x, DATAX end_x, DATAY begin_y) |
| | templated constructor in the spirit of STL-algorithms
|
| |
| template<class DATA > |
| | SplineBase (const GaudiMath::Interpolation::Type type, DATA begin, DATA end) |
| | templated constructor from the sequence of (x,y(x)) pairs as sequence of pairs the class TabulatedProperty can be used
|
| |
| | SplineBase (const SplineBase &) |
| | copy constructor
|
| |
| virtual | ~SplineBase () |
| | destructor
|
| |
| double | eval (const double x) const |
| | evaluate the function
|
| |
| double | deriv (const double x) const |
| | evaluate the first derivative
|
| |
| double | deriv2 (const double x) const |
| | evaluate the second derivative
|
| |
| double | integ (const double a, const double b) const |
| | evaluate the integral on [a,b]
|
| |
Definition at line 36 of file Splines.h.
constructor from vectors and type
- Parameters
-
| x | vector of x |
| y | vector of y(x) |
| type | interpolation type |
Definition at line 34 of file Splines.cpp.
,
m_x (
new double[ x.size() ] )
,
m_y (
new double[ y.size() ] )
{
#ifdef WIN32
#pragma warning(push)
#pragma warning(disable:4996)
#endif
#ifdef WIN32
#pragma warning(pop)
#endif
}
constructor from vector of (x,y(x)) pairs
- Parameters
-
| data | vector of (x,y(x)) pairs |
| type | interpolaiton type |
Definition at line 68 of file Splines.cpp.
,
m_x (
new double[ data.size() ] )
,
m_y (
new double[ data.size() ] )
{
data.begin() ; data.end() != it ; ++it )
{
*_x = it -> first ; ++_x ;
}
}
template<class DATAX , class DATAY >
templated constructor in the spirit of STL-algorithms
- Parameters
-
| type | interpolation type |
| begin_x | begin of X-sequence |
| end_x | end of X-sequence |
| begin_Y | begin of Y-sequence |
Definition at line 66 of file Splines.h.
,
m_dim ( end_x - begin_x )
,
m_x (
new double[ end_x - begin_x ] )
,
m_y (
new double[ end_x - begin_x ] )
{
std::copy ( begin_y , begin_y + ( end_x - begin_x ) ,
m_y ) ;
}
templated constructor from the sequence of (x,y(x)) pairs as sequence of pairs the class TabulatedProperty can be used
- Parameters
-
| type | interpolation type |
| begin | begin of sequence of (x,y(x)) pairs |
| end | end of sequence of (x,y(x)) pairs |
Definition at line 90 of file Splines.h.
,
m_x (
new double[
end - begin ] )
,
m_y (
new double[
end - begin ] )
{
for ( DATA it = begin ;
end != it ; ++ it )
{
*_x = it -> first ; ++_x ;
};
}
| Genfun::GaudiMathImplementation::SplineBase::SplineBase |
( |
const SplineBase & |
right | ) |
|
| Genfun::GaudiMathImplementation::SplineBase::~SplineBase |
( |
| ) |
|
|
virtual |
| Genfun::GaudiMathImplementation::SplineBase::SplineBase |
( |
| ) |
|
|
private |
| double Genfun::GaudiMathImplementation::SplineBase::deriv |
( |
const double |
x | ) |
const |
evaluate the first derivative
Definition at line 164 of file Splines.cpp.
| double Genfun::GaudiMathImplementation::SplineBase::deriv2 |
( |
const double |
x | ) |
const |
evaluate the second derivative
Definition at line 172 of file Splines.cpp.
| double Genfun::GaudiMathImplementation::SplineBase::eval |
( |
const double |
x | ) |
const |
| void Genfun::GaudiMathImplementation::SplineBase::initialize |
( |
| ) |
const |
|
protected |
Definition at line 120 of file Splines.cpp.
{
const gsl_interp_type* T = 0 ;
{
T = gsl_interp_linear ; break ;
T = gsl_interp_polynomial ; break ;
T = gsl_interp_cspline ; break ;
T = gsl_interp_cspline_periodic ; break ;
T = gsl_interp_akima ; break ;
T = gsl_interp_akima_periodic ; break ;
default :
T = gsl_interp_cspline ; break ;
};
m_accel = gsl_interp_accel_alloc() ;
}
| double Genfun::GaudiMathImplementation::SplineBase::integ |
( |
const double |
a, |
|
|
const double |
b |
|
) |
| const |
evaluate the integral on [a,b]
Definition at line 180 of file Splines.cpp.
| gsl_interp_accel* Genfun::GaudiMathImplementation::SplineBase::m_accel |
|
mutableprivate |
| size_t Genfun::GaudiMathImplementation::SplineBase::m_dim |
|
private |
| bool Genfun::GaudiMathImplementation::SplineBase::m_init |
|
mutableprivate |
| gsl_spline* Genfun::GaudiMathImplementation::SplineBase::m_spline |
|
mutableprivate |
| double* Genfun::GaudiMathImplementation::SplineBase::m_x |
|
private |
| double* Genfun::GaudiMathImplementation::SplineBase::m_y |
|
private |
The documentation for this class was generated from the following files:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r8/GaudiGSL/GaudiMath/Splines.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r8/GaudiGSL/src/Lib/Splines.cpp