Genfun::GaudiMathImplementation::GSLSpline Class Reference

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/996/GAUDI/GAUDI_v26r4/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 ()=delete
 default construtor is disabled ; More...
 
GSLSplineoperator= (const GSLSpline &)=delete
 assignement operator is disabled ; More...
 
 GSLSpline ()=delete
 default construtor is disabled ; More...
 
GSLSplineoperator= (const GSLSpline &)=delete
 assignement operator is disabled ; More...
 

Private Attributes

SplineBase m_spline
 

Detailed Description

Definition at line 133 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 211 of file Splines.cpp.

214  : AbsFunction ()
215  , m_spline ( x , y , type )
216  {}
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 240 of file Splines.cpp.

242  : AbsFunction ()
243  , m_spline ( data , type )
244  {}
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 215 of file Splines.h.

219  : AbsFunction ( )
220  , m_spline( type , begin_x , end_x , begin_y )
221  {}
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 235 of file Splines.h.

238  : AbsFunction ( )
239  , m_spline( type , begin , end )
240  {}
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const SplineBase right)

constructor from base

constructor from SplineBase

Definition at line 251 of file Splines.cpp.

252  : AbsFunction ()
253  , m_spline ( right )
254  {}
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( const GSLSpline right)

copy constructor

Definition at line 261 of file Splines.cpp.

262  : AbsFunction ()
263  , m_spline ( right )
264  {}
Genfun::GaudiMathImplementation::GSLSpline::~GSLSpline ( )
virtual

destructor

Definition at line 270 of file Splines.cpp.

270 {}
Genfun::GaudiMathImplementation::GSLSpline::GSLSpline ( )
privatedelete

default construtor is disabled ;

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 215 of file Splines.h.

219  : AbsFunction ( )
220  , m_spline( type , begin_x , end_x , begin_y )
221  {}
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 235 of file Splines.h.

238  : AbsFunction ( )
239  , m_spline( type , begin , end )
240  {}
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:45
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:47
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 ( )
privatedelete

default construtor is disabled ;

Member Function Documentation

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

Definition at line 252 of file Splines.h.

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

Definition at line 252 of file Splines.h.

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

Does this function have an analytic derivative?

Definition at line 254 of file Splines.h.

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

Does this function have an analytic derivative?

Definition at line 254 of file Splines.h.

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

cast operator to the spline function

Definition at line 261 of file Splines.h.

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

cast operator to the spline function

Definition at line 261 of file Splines.h.

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

main methgod: evaluate teh function

Definition at line 274 of file Splines.cpp.

275  { return m_spline.eval( x ) ; }
double eval(const double x) const
evaluate the function
Definition: Splines.cpp:151
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 277 of file Splines.cpp.

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

main methgod: evaluate teh function

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

assignement operator is disabled ;

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

assignement operator is disabled ;

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

Derivatives.

Definition at line 284 of file Splines.cpp.

285  {
286  if ( i >= 1 )
287  {
288  const AbsFunction& aux = GaudiMath::Constant( 0.0 , 1 ) ;
289  return Genfun::FunctionNoop( &aux ) ;
290  }
291  const AbsFunction& aux = GSLSplineDeriv( *this ) ;
292  return Genfun::FunctionNoop( &aux ) ;
293  }
list i
Definition: ana.py:128
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:27
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 259 of file Splines.h.

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

acess to the spline function

Definition at line 259 of file Splines.h.

259 { return m_spline ; }

Member Data Documentation

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

Definition at line 269 of file Splines.h.


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