Genfun::GaudiMathImplementation::GSLSplineDeriv 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::GSLSplineDeriv:
Collaboration diagram for Genfun::GaudiMathImplementation::GSLSplineDeriv:

Public Types

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

Public Member Functions

 GSLSplineDeriv (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type)
 mandatory macro from CLHEP/GenericFunctions More...
 
 GSLSplineDeriv (const Data2D &data, const GaudiMath::Interpolation::Type type)
 constructor from data vector More...
 
template<class DATAX , class DATAY >
 GSLSplineDeriv (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 >
 GSLSplineDeriv (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...
 
 GSLSplineDeriv (const SplineBase &)
 constructor from base More...
 
 GSLSplineDeriv (const GSLSplineDeriv &)
 copy constructor More...
 
virtual ~GSLSplineDeriv ()
 destructor More...
 
virtual double operator() (double a) const
 main method: evaluate the function More...
 
virtual double operator() (const Argument &x) const
 main method: evaluate the 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...
 
 GSLSplineDeriv (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type)
 mandatory macro from CLHEP/GenericFunctions More...
 
 GSLSplineDeriv (const Data2D &data, const GaudiMath::Interpolation::Type type)
 constructor from data vector More...
 
template<class DATAX , class DATAY >
 GSLSplineDeriv (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 >
 GSLSplineDeriv (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...
 
 GSLSplineDeriv (const SplineBase &)
 constructor from base More...
 
 GSLSplineDeriv (const GSLSplineDeriv &)
 copy constructor More...
 
virtual ~GSLSplineDeriv ()
 destructor More...
 
virtual double operator() (double a) const
 main method: evaluate the function More...
 
virtual double operator() (const Argument &x) const
 main method: evaluate the 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

 GSLSplineDeriv ()
 default construtor is desabled ; More...
 
GSLSplineDerivoperator= (const GSLSplineDeriv &)
 assignement operator is desabled ; More...
 
 GSLSplineDeriv ()
 default construtor is desabled ; More...
 
GSLSplineDerivoperator= (const GSLSplineDeriv &)
 assignement operator is desabled ; More...
 

Private Attributes

SplineBase m_spline
 

Detailed Description

Definition at line 279 of file Splines.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( 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 329 of file Splines.cpp.

332  : AbsFunction ()
333  , m_spline ( x , y , type )
334  {}
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( const Data2D data,
const GaudiMath::Interpolation::Type  type 
)

constructor from data vector

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

Definition at line 358 of file Splines.cpp.

360  : AbsFunction ()
361  , m_spline ( data , type )
362  {}
string type
Definition: gaudirun.py:151
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( 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 361 of file Splines.h.

365  : AbsFunction ( )
366  , m_spline( type , begin_x , end_x , begin_y )
367  {}
string type
Definition: gaudirun.py:151
template<class DATA >
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( 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 381 of file Splines.h.

384  : AbsFunction ( )
385  , m_spline( type , begin , end )
386  {}
tuple end
Definition: IOTest.py:101
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( const SplineBase right)

constructor from base

constructor from SplineBase

Definition at line 369 of file Splines.cpp.

370  : AbsFunction ()
371  , m_spline ( right )
372  {}
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( const GSLSplineDeriv right)

copy constructor

Definition at line 379 of file Splines.cpp.

380  : AbsFunction ()
381  , m_spline ( right )
382  {}
Genfun::GaudiMathImplementation::GSLSplineDeriv::~GSLSplineDeriv ( )
virtual

destructor

Definition at line 388 of file Splines.cpp.

388 {}
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( )
private

default construtor is desabled ;

Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( 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::GSLSplineDeriv::GSLSplineDeriv ( const Data2D data,
const GaudiMath::Interpolation::Type  type 
)

constructor from data vector

Data2D data = ... ;
const AbsFunction& func =
GSLSpline( data , GaudiMath::Interpolation::Cspline );
const double value = 1 ;
const double result = func( value ) ;
Parameters
datavector of (x,y) pairs
typeinterpolation type
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( 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 361 of file Splines.h.

365  : AbsFunction ( )
366  , m_spline( type , begin_x , end_x , begin_y )
367  {}
string type
Definition: gaudirun.py:151
template<class DATA >
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( 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 381 of file Splines.h.

384  : AbsFunction ( )
385  , m_spline( type , begin , end )
386  {}
tuple end
Definition: IOTest.py:101
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( const SplineBase )

constructor from base

Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( const GSLSplineDeriv )

copy constructor

virtual Genfun::GaudiMathImplementation::GSLSplineDeriv::~GSLSplineDeriv ( )
virtual

destructor

Genfun::GaudiMathImplementation::GSLSplineDeriv::GSLSplineDeriv ( )
private

default construtor is desabled ;

Member Function Documentation

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

Definition at line 398 of file Splines.h.

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

Definition at line 398 of file Splines.h.

398 { return 1 ; }
virtual bool Genfun::GaudiMathImplementation::GSLSplineDeriv::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 400 of file Splines.h.

400 { return true ; }
virtual bool Genfun::GaudiMathImplementation::GSLSplineDeriv::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 400 of file Splines.h.

400 { return true ; }
Genfun::GaudiMathImplementation::GSLSplineDeriv::operator const SplineBase & ( ) const
inline

cast operator to the spline function

Definition at line 407 of file Splines.h.

407 { return spline() ; }
const SplineBase & spline() const
acess to the spline function
Definition: Splines.h:405
Genfun::GaudiMathImplementation::GSLSplineDeriv::operator const SplineBase & ( ) const
inline

cast operator to the spline function

Definition at line 407 of file Splines.h.

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

main method: evaluate the function

Definition at line 392 of file Splines.cpp.

393  { return m_spline.deriv ( x ) ; }
double deriv(const double x) const
evaluate the first derivative
Definition: Splines.cpp:165
virtual double Genfun::GaudiMathImplementation::GSLSplineDeriv::operator() ( double  a) const
virtual

main method: evaluate the function

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

main method: evaluate the function

Definition at line 395 of file Splines.cpp.

396  { return m_spline.deriv ( x[0] ) ; }
double deriv(const double x) const
evaluate the first derivative
Definition: Splines.cpp:165
virtual double Genfun::GaudiMathImplementation::GSLSplineDeriv::operator() ( const Argument &  x) const
virtual

main method: evaluate the function

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

assignement operator is desabled ;

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

assignement operator is desabled ;

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

Derivatives.

Definition at line 402 of file Splines.cpp.

403  {
404  if ( i >= 1 )
405  {
406  const AbsFunction& aux = GaudiMath::Constant( 0.0 , 1 ) ;
407  return Genfun::FunctionNoop( &aux ) ;
408  }
409  const AbsFunction& aux = GSLSplineDeriv2( *this ) ;
410  return Genfun::FunctionNoop( &aux ) ;
411  }
list i
Definition: ana.py:128
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:29
virtual Genfun::Derivative Genfun::GaudiMathImplementation::GSLSplineDeriv::partial ( unsigned int  i) const
virtual

Derivatives.

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

acess to the spline function

Definition at line 405 of file Splines.h.

405 { return m_spline ; }
const SplineBase& Genfun::GaudiMathImplementation::GSLSplineDeriv::spline ( ) const
inline

acess to the spline function

Definition at line 405 of file Splines.h.

405 { return m_spline ; }

Member Data Documentation

SplineBase Genfun::GaudiMathImplementation::GSLSplineDeriv::m_spline
private

Definition at line 415 of file Splines.h.


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