#include <Splines.h>
List of all members.
Public Types |
typedef std::vector< double > | Data1D |
typedef std::vector< std::pair
< double, double > > | Data2D |
Public Member Functions |
| 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]
|
Protected Member Functions |
void | initialize () const |
Private Member Functions |
| SplineBase () |
SplineBase & | operator= (const SplineBase &) |
Private Attributes |
bool | m_init |
size_t | m_dim |
double * | m_x |
double * | m_y |
gsl_spline * | m_spline |
gsl_interp_accel * | m_accel |
GaudiMath::Interpolation::Type | m_type |
Detailed Description
Definition at line 36 of file Splines.h.
Member Typedef Documentation
Constructor & Destructor Documentation
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_init ( false )
, m_dim ( x.size() )
, m_x ( new double[ x.size() ] )
, m_y ( new double[ y.size() ] )
, m_spline ( 0 )
, m_accel ( 0 )
, m_type ( type )
{
#ifdef WIN32
#pragma warning(push)
#pragma warning(disable:4996)
#endif
std::copy( x.begin() , x.end() , m_x ) ;
std::copy( y.begin() , y.end() , m_y ) ;
#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.
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::SplineBase::SplineBase |
( |
const GaudiMath::Interpolation::Type |
type, |
|
|
DATAX |
begin_x, |
|
|
DATAX |
end_x, |
|
|
DATAY |
begin_y |
|
) |
| [inline] |
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_init ( false )
, m_dim ( end_x - begin_x )
, m_x ( new double[ end_x - begin_x ] )
, m_y ( new double[ end_x - begin_x ] )
, m_spline ( 0 )
, m_accel ( 0 )
, m_type ( type )
{
std::copy ( begin_x , end_x , m_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.
Genfun::GaudiMathImplementation::SplineBase::SplineBase |
( |
const SplineBase & |
right ) |
|
copy constructor
Definition at line 92 of file Splines.cpp.
: m_init ( false )
, m_dim ( right.m_dim )
, m_x ( new double[ right.m_dim ] )
, m_y ( new double[ right.m_dim ] )
, m_spline ( 0 )
, m_accel ( 0 )
, m_type ( right.m_type )
{
std::memcpy(m_x, right.m_x, m_dim);
std::memcpy(m_y, right.m_y, m_dim);
}
Genfun::GaudiMathImplementation::SplineBase::~SplineBase |
( |
) |
[virtual] |
Genfun::GaudiMathImplementation::SplineBase::SplineBase |
( |
) |
[private] |
Member Function Documentation
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] |
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.
Member Data Documentation
The documentation for this class was generated from the following files:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiGSL/GaudiMath/Splines.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiGSL/src/Lib/Splines.cpp