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

Public Types

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

Public Member Functions

 GSLSplineInteg (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type, const double low=0)
 mandatory macro from CLHEP/GenericFunctions More...
 
 GSLSplineInteg (const Data2D &data, const GaudiMath::Interpolation::Type type, const double low=0)
 constructor from data vector More...
 
template<class DATAX , class DATAY >
 GSLSplineInteg (const GaudiMath::Interpolation::Type type, DATAX begin_x, DATAX end_x, DATAY begin_y, const double low)
 templated constructor in the spirit of STL-algorithms More...
 
template<class DATA >
 GSLSplineInteg (const GaudiMath::Interpolation::Type type, DATA begin, DATA end, const double low)
 templated constructor from the sequence of pairs as sequence of pairs the class TabulatedProperty can be used More...
 
 GSLSplineInteg (const SplineBase &, const double low=0)
 constructor from base More...
 
 GSLSplineInteg (const GSLSplineInteg &)
 copy constructor More...
 
virtual ~GSLSplineInteg ()
 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...
 
 GSLSplineInteg (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type, const double low=0)
 mandatory macro from CLHEP/GenericFunctions More...
 
 GSLSplineInteg (const Data2D &data, const GaudiMath::Interpolation::Type type, const double low=0)
 constructor from data vector More...
 
template<class DATAX , class DATAY >
 GSLSplineInteg (const GaudiMath::Interpolation::Type type, DATAX begin_x, DATAX end_x, DATAY begin_y, const double low)
 templated constructor in the spirit of STL-algorithms More...
 
template<class DATA >
 GSLSplineInteg (const GaudiMath::Interpolation::Type type, DATA begin, DATA end, const double low)
 templated constructor from the sequence of pairs as sequence of pairs the class TabulatedProperty can be used More...
 
 GSLSplineInteg (const SplineBase &, const double low=0)
 constructor from base More...
 
 GSLSplineInteg (const GSLSplineInteg &)
 copy constructor More...
 
virtual ~GSLSplineInteg ()
 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

 GSLSplineInteg ()
 default construtor is desabled ; More...
 
GSLSplineIntegoperator= (const GSLSplineInteg &)
 assignement operator is desabled ; More...
 
 GSLSplineInteg ()
 default construtor is desabled ; More...
 
GSLSplineIntegoperator= (const GSLSplineInteg &)
 assignement operator is desabled ; More...
 

Private Attributes

SplineBase m_spline
 
double m_low
 

Detailed Description

Definition at line 558 of file Splines.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const Data1D x,
const Data1D y,
const GaudiMath::Interpolation::Type  type,
const double  low = 0 
)

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
lowlow integration limit
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 554 of file Splines.cpp.

558  : AbsFunction ( )
559  , m_spline ( x , y , type )
560  , m_low ( low )
561  {}
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const Data2D data,
const GaudiMath::Interpolation::Type  type,
const double  low = 0 
)

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
lowlow integration limit
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 585 of file Splines.cpp.

588  : AbsFunction ()
589  , m_spline ( data , type )
590  , m_low ( low )
591  {}
string type
Definition: gaudirun.py:151
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const GaudiMath::Interpolation::Type  type,
DATAX  begin_x,
DATAX  end_x,
DATAY  begin_y,
const double  low 
)
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
lowlow integration limit

Definition at line 644 of file Splines.h.

649  : AbsFunction ( )
650  , m_spline ( type , begin_x , end_x , begin_y )
651  , m_low ( low )
652  {}
string type
Definition: gaudirun.py:151
template<class DATA >
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const GaudiMath::Interpolation::Type  type,
DATA  begin,
DATA  end,
const double  low 
)
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
lowlow integration limit

Definition at line 667 of file Splines.h.

671  : AbsFunction ( )
672  , m_spline ( type , begin , end )
673  , m_low ( low )
674  {}
tuple end
Definition: IOTest.py:101
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const SplineBase right,
const double  low = 0 
)

constructor from base

constructor from SplineBase

Definition at line 598 of file Splines.cpp.

600  : AbsFunction ()
601  , m_spline ( right )
602  , m_low ( low )
603  {}
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const GSLSplineInteg right)

copy constructor

Definition at line 610 of file Splines.cpp.

611  : AbsFunction ()
612  , m_spline ( right )
613  , m_low ( right.m_low )
614  {}
Genfun::GaudiMathImplementation::GSLSplineInteg::~GSLSplineInteg ( )
virtual

destructor

Definition at line 620 of file Splines.cpp.

620 {}
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( )
private

default construtor is desabled ;

Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const Data1D x,
const Data1D y,
const GaudiMath::Interpolation::Type  type,
const double  low = 0 
)

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
lowlow integration limit
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const Data2D data,
const GaudiMath::Interpolation::Type  type,
const double  low = 0 
)

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
lowlow integration limit
template<class DATAX , class DATAY >
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const GaudiMath::Interpolation::Type  type,
DATAX  begin_x,
DATAX  end_x,
DATAY  begin_y,
const double  low 
)
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
lowlow integration limit

Definition at line 644 of file Splines.h.

649  : AbsFunction ( )
650  , m_spline ( type , begin_x , end_x , begin_y )
651  , m_low ( low )
652  {}
string type
Definition: gaudirun.py:151
template<class DATA >
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const GaudiMath::Interpolation::Type  type,
DATA  begin,
DATA  end,
const double  low 
)
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
lowlow integration limit

Definition at line 667 of file Splines.h.

671  : AbsFunction ( )
672  , m_spline ( type , begin , end )
673  , m_low ( low )
674  {}
tuple end
Definition: IOTest.py:101
string type
Definition: gaudirun.py:151
Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const SplineBase ,
const double  low = 0 
)

constructor from base

Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( const GSLSplineInteg )

copy constructor

virtual Genfun::GaudiMathImplementation::GSLSplineInteg::~GSLSplineInteg ( )
virtual

destructor

Genfun::GaudiMathImplementation::GSLSplineInteg::GSLSplineInteg ( )
private

default construtor is desabled ;

Member Function Documentation

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

Definition at line 687 of file Splines.h.

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

Definition at line 687 of file Splines.h.

687 { return 1 ; }
virtual bool Genfun::GaudiMathImplementation::GSLSplineInteg::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 689 of file Splines.h.

689 { return true ; }
virtual bool Genfun::GaudiMathImplementation::GSLSplineInteg::hasAnalyticDerivative ( ) const
inlinevirtual

Does this function have an analytic derivative?

Definition at line 689 of file Splines.h.

689 { return true ; }
Genfun::GaudiMathImplementation::GSLSplineInteg::operator const SplineBase & ( ) const
inline

cast operator to the spline function

Definition at line 696 of file Splines.h.

696 { return spline() ; }
const SplineBase & spline() const
acess to the spline function
Definition: Splines.h:694
Genfun::GaudiMathImplementation::GSLSplineInteg::operator const SplineBase & ( ) const
inline

cast operator to the spline function

Definition at line 696 of file Splines.h.

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

main method: evaluate the function

Definition at line 624 of file Splines.cpp.

625  { return m_spline.integ ( m_low , x ) ; }
double integ(const double a, const double b) const
evaluate the integral on [a,b]
Definition: Splines.cpp:181
virtual double Genfun::GaudiMathImplementation::GSLSplineInteg::operator() ( double  a) const
virtual

main method: evaluate the function

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

main method: evaluate the function

Definition at line 627 of file Splines.cpp.

628  { return m_spline.integ ( m_low , x[0] ) ; }
double integ(const double a, const double b) const
evaluate the integral on [a,b]
Definition: Splines.cpp:181
virtual double Genfun::GaudiMathImplementation::GSLSplineInteg::operator() ( const Argument &  x) const
virtual

main method: evaluate the function

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

assignement operator is desabled ;

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

assignement operator is desabled ;

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

Derivatives.

Definition at line 634 of file Splines.cpp.

635  {
636  if ( i >= 1 )
637  {
638  const AbsFunction& aux = GaudiMath::Constant( 0.0 , 1 ) ;
639  return Genfun::FunctionNoop( &aux ) ;
640  }
641  const AbsFunction& aux = GSLSpline( *this ) ;
642  return Genfun::FunctionNoop( &aux ) ;
643  }
list i
Definition: ana.py:128
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:29
virtual Genfun::Derivative Genfun::GaudiMathImplementation::GSLSplineInteg::partial ( unsigned int  i) const
virtual

Derivatives.

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

acess to the spline function

Definition at line 694 of file Splines.h.

694 { return m_spline ; }
const SplineBase& Genfun::GaudiMathImplementation::GSLSplineInteg::spline ( ) const
inline

acess to the spline function

Definition at line 694 of file Splines.h.

694 { return m_spline ; }

Member Data Documentation

double Genfun::GaudiMathImplementation::GSLSplineInteg::m_low
private

Definition at line 705 of file Splines.h.

SplineBase Genfun::GaudiMathImplementation::GSLSplineInteg::m_spline
private

Definition at line 704 of file Splines.h.


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