Genfun::GaudiMathImplementation::GSLSpline Class Reference

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/825/GAUDI/GAUDI_v26r3/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiMath/Splines.h>

Inheritance diagram for Genfun::GaudiMathImplementation::GSLSpline:
Collaboration diagram for Genfun::GaudiMathImplementation::GSLSpline:

Public Types

typedef SplineBase::Data1D Data1D
 
typedef SplineBase::Data2D Data2D
 
typedef SplineBase::Data1D Data1D
 
typedef SplineBase::Data2D Data2D
 

Public Member Functions

 GSLSpline (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type)
 mandatory macro from CLHEP/GenericFunctions More...
 
 GSLSpline (const Data2D &data, const GaudiMath::Interpolation::Type type)
 constructor from data vector More...
 
template<class DATAX , class DATAY >
 GSLSpline (const GaudiMath::Interpolation::Type type, DATAX begin_x, DATAX end_x, DATAY begin_y)
 templated constructor in the spirit of STL-algorithms More...
 
template<class DATA >
 GSLSpline (const GaudiMath::Interpolation::Type type, DATA begin, DATA end)
 templated constructor from the sequence of pairs as sequence of pairs the class TabulatedProperty can be used More...
 
 GSLSpline (const SplineBase &)
 constructor from base More...
 
 GSLSpline (const GSLSpline &)
 copy constructor More...
 
virtual ~GSLSpline ()
 destructor More...
 
virtual double operator() (double a) const
 main methgod: evaluate teh function More...
 
virtual double operator() (const Argument &x) const
 main methgod: evaluate teh function More...
 
virtual unsigned int dimensionality () const
 
virtual bool hasAnalyticDerivative () const
 Does this function have an analytic derivative? More...
 
virtual Genfun::Derivative partial (unsigned int i) const
 Derivatives. More...
 
const SplineBasespline () const
 acess to the spline function More...
 
 operator const SplineBase & () const
 cast operator to the spline function More...
 
 GSLSpline (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type)
 mandatory macro from CLHEP/GenericFunctions More...
 
 GSLSpline (const Data2D &data, const GaudiMath::Interpolation::Type type)
 constructor from data vector More...
 
template<class DATAX , class DATAY >
 GSLSpline (const GaudiMath::Interpolation::Type type, DATAX begin_x, DATAX end_x, DATAY begin_y)
 templated constructor in the spirit of STL-algorithms More...
 
template<class DATA >
 GSLSpline (const GaudiMath::Interpolation::Type type, DATA begin, DATA end)
 templated constructor from the sequence of pairs as sequence of pairs the class TabulatedProperty can be used More...
 
 GSLSpline (const SplineBase &)
 constructor from base More...
 
 GSLSpline (const GSLSpline &)
 copy constructor More...
 
virtual ~GSLSpline ()
 destructor More...
 
virtual double operator() (double a) const
 main methgod: evaluate teh function More...
 
virtual double operator() (const Argument &x) const
 main methgod: evaluate teh function More...
 
virtual unsigned int dimensionality () const
 
virtual bool hasAnalyticDerivative () const
 Does this function have an analytic derivative? More...
 
virtual Genfun::Derivative partial (unsigned int i) const
 Derivatives. More...
 
const SplineBasespline () const
 acess to the spline function More...
 
 operator const SplineBase & () const
 cast operator to the spline function More...
 

Private Member Functions

 GSLSpline ()
 default construtor is desabled ; More...
 
GSLSplineoperator= (const GSLSpline &)
 assignement operator is desabled ; More...
 
 GSLSpline ()
 default construtor is desabled ; More...
 
GSLSplineoperator= (const GSLSpline &)
 assignement operator is desabled ; More...
 

Private Attributes

SplineBase m_spline
 

Detailed Description

Definition at line 140 of file Splines.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const Data1D x,
const Data1D y,
const GaudiMath::Interpolation::Type  type 
)

mandatory macro from CLHEP/GenericFunctions

constructor from vectors and type

constructor from vectors and type

Data1D x = .. ;
Data1D y = .. ;
const AbsFunction& func =
const double value = 1 ;
const double result = func( value ) ;
Parameters
xvector of x
yvector of y
typeinterpolation type
Data1D x = .. ;
Data1D y = .. ;
const AbsFunction& func =
const double value = 1 ;
const double result = func( value ) ;
Parameters
xvector of x
yvector of y
typeinterpolation type

Definition at line 217 of file Splines.cpp.

220  : AbsFunction ()
221  , m_spline ( x , y , type )
222  {}
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const Data2D data,
const GaudiMath::Interpolation::Type  type 
)

constructor from data vector

Data2D data = ... ;
const AbsFunction& func =
const double value = 1 ;
const double result = func( value ) ;
Parameters
datavector of (x,y) pairs
typeinterpolation type

Definition at line 246 of file Splines.cpp.

248  : AbsFunction ()
249  , m_spline ( data , type )
250  {}
string type
Definition: gaudirun.py:151
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GaudiMath::Interpolation::Type  type,
DATAX  begin_x,
DATAX  end_x,
DATAY  begin_y 
)
inline

templated constructor in the spirit of STL-algorithms

It is assumed that vector "y" has tehlength AT LEAST as long as "x"

SEQURNCE1 x = .. ;
SEQUENCE2 y = .. ;
const AbsFunction& func =
x.begin () ,
x.end () ,
y.begin () );
const double value = 1 ;
const double result = func( value ) ;
Parameters
begin_xbegin of X-sequence
end_xend of X-sequence
begin_Ybegin of Y-sequence
typeinterpolation type

Definition at line 222 of file Splines.h.

226  : AbsFunction ( )
227  , m_spline( type , begin_x , end_x , begin_y )
228  {}
string type
Definition: gaudirun.py:151
template<class DATA >
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GaudiMath::Interpolation::Type  type,
DATA  begin,
DATA  end 
)
inline

templated constructor from the sequence of pairs as sequence of pairs the class TabulatedProperty can be used

Parameters
beginbegin of sequence of pairs
endend of sequence of pairs
typeinterpolation type

Definition at line 242 of file Splines.h.

245  : AbsFunction ( )
246  , m_spline( type , begin , end )
247  {}
tuple end
Definition: IOTest.py:101
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const SplineBase right)

constructor from base

constructor from SplineBase

Definition at line 257 of file Splines.cpp.

258  : AbsFunction ()
259  , m_spline ( right )
260  {}
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GSLSpline right)

copy constructor

Definition at line 267 of file Splines.cpp.

268  : AbsFunction ()
269  , m_spline ( right )
270  {}
Genfun::GaudiMathImplementation::GSLSpline::~GSLSpline ( )
virtual

destructor

Definition at line 276 of file Splines.cpp.

276 {}
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( )
private

default construtor is desabled ;

Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const Data1D x,
const Data1D y,
const GaudiMath::Interpolation::Type  type 
)

mandatory macro from CLHEP/GenericFunctions

constructor from vectors and type

Data1D x = .. ;
Data1D y = .. ;
const AbsFunction& func =
const double value = 1 ;
const double result = func( value ) ;
Parameters
xvector of x
yvector of y
typeinterpolation type
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const Data2D data,
const GaudiMath::Interpolation::Type  type 
)

constructor from data vector

Data2D data = ... ;
const AbsFunction& func =
const double value = 1 ;
const double result = func( value ) ;
Parameters
datavector of (x,y) pairs
typeinterpolation type
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GaudiMath::Interpolation::Type  type,
DATAX  begin_x,
DATAX  end_x,
DATAY  begin_y 
)
inline

templated constructor in the spirit of STL-algorithms

It is assumed that vector "y" has tehlength AT LEAST as long as "x"

SEQURNCE1 x = .. ;
SEQUENCE2 y = .. ;
const AbsFunction& func =
x.begin () ,
x.end () ,
y.begin () );
const double value = 1 ;
const double result = func( value ) ;
Parameters
begin_xbegin of X-sequence
end_xend of X-sequence
begin_Ybegin of Y-sequence
typeinterpolation type

Definition at line 222 of file Splines.h.

226  : AbsFunction ( )
227  , m_spline( type , begin_x , end_x , begin_y )
228  {}
string type
Definition: gaudirun.py:151
template<class DATA >
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GaudiMath::Interpolation::Type  type,
DATA  begin,
DATA  end 
)
inline

templated constructor from the sequence of pairs as sequence of pairs the class TabulatedProperty can be used

Parameters
beginbegin of sequence of pairs
endend of sequence of pairs
typeinterpolation type

Definition at line 242 of file Splines.h.

245  : AbsFunction ( )
246  , m_spline( type , begin , end )
247  {}
tuple end
Definition: IOTest.py:101
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const SplineBase )

constructor from base

Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GSLSpline )

copy constructor

virtual Genfun::GaudiMathImplementation::GSLSpline::~GSLSpline ( )
virtual

destructor

Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( )
private

default construtor is desabled ;

Member Function Documentation

virtual unsigned int Genfun::GaudiMathImplementation::GSLSpline::dimensionality ( ) const
inlinevirtual

Definition at line 259 of file Splines.h.

259 { return 1 ; }
virtual unsigned int Genfun::GaudiMathImplementation::GSLSpline::dimensionality ( ) const
inlinevirtual

Definition at line 259 of file Splines.h.

259 { return 1 ; }
virtual bool Genfun::GaudiMathImplementation::GSLSpline::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 261 of file Splines.h.

261 { return true ; }
virtual bool Genfun::GaudiMathImplementation::GSLSpline::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 261 of file Splines.h.

261 { return true ; }
Genfun::GaudiMathImplementation::GSLSpline::operator const SplineBase & ( ) const
inline

cast operator to the spline function

Definition at line 268 of file Splines.h.

268 { return spline() ; }
const SplineBase & spline() const
acess to the spline function
Definition: Splines.h:266
Genfun::GaudiMathImplementation::GSLSpline::operator const SplineBase & ( ) const
inline

cast operator to the spline function

Definition at line 268 of file Splines.h.

268 { return spline() ; }
const SplineBase & spline() const
acess to the spline function
Definition: Splines.h:266
double Genfun::GaudiMathImplementation::GSLSpline::operator() ( double  a) const
virtual

main methgod: evaluate teh function

Definition at line 280 of file Splines.cpp.

281  { return m_spline.eval( x ) ; }
double eval(const double x) const
evaluate the function
Definition: Splines.cpp:157
virtual double Genfun::GaudiMathImplementation::GSLSpline::operator() ( double  a) const
virtual

main methgod: evaluate teh function

double Genfun::GaudiMathImplementation::GSLSpline::operator() ( const Argument &  x) const
virtual

main methgod: evaluate teh function

Definition at line 283 of file Splines.cpp.

284  { return m_spline.eval( x[0] ) ; }
double eval(const double x) const
evaluate the function
Definition: Splines.cpp:157
virtual double Genfun::GaudiMathImplementation::GSLSpline::operator() ( const Argument &  x) const
virtual

main methgod: evaluate teh function

GSLSpline& Genfun::GaudiMathImplementation::GSLSpline::operator= ( const GSLSpline )
private

assignement operator is desabled ;

GSLSpline& Genfun::GaudiMathImplementation::GSLSpline::operator= ( const GSLSpline )
private

assignement operator is desabled ;

Genfun::Derivative Genfun::GaudiMathImplementation::GSLSpline::partial ( unsigned int  i) const
virtual

Derivatives.

Definition at line 290 of file Splines.cpp.

291  {
292  if ( i >= 1 )
293  {
294  const AbsFunction& aux = GaudiMath::Constant( 0.0 , 1 ) ;
295  return Genfun::FunctionNoop( &aux ) ;
296  }
297  const AbsFunction& aux = GSLSplineDeriv( *this ) ;
298  return Genfun::FunctionNoop( &aux ) ;
299  }
list i
Definition: ana.py:128
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:29
virtual Genfun::Derivative Genfun::GaudiMathImplementation::GSLSpline::partial ( unsigned int  i) const
virtual

Derivatives.

const SplineBase& Genfun::GaudiMathImplementation::GSLSpline::spline ( ) const
inline

acess to the spline function

Definition at line 266 of file Splines.h.

266 { return m_spline ; }
const SplineBase& Genfun::GaudiMathImplementation::GSLSpline::spline ( ) const
inline

acess to the spline function

Definition at line 266 of file Splines.h.

266 { return m_spline ; }

Member Data Documentation

SplineBase Genfun::GaudiMathImplementation::GSLSpline::m_spline
private

Definition at line 276 of file Splines.h.


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