|
Gaudi Framework, version v21r11 |
| Home | Generated: 30 Sep 2010 |
#include <Splines.h>
Public Types | |
| typedef SplineBase::Data1D | Data1D |
| typedef SplineBase::Data2D | Data2D |
Public Member Functions | |
| GSLSplineDeriv2 (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type) | |
| mandatory macro from CLHEP/GenericFunctions | |
| GSLSplineDeriv2 (const Data2D &data, const GaudiMath::Interpolation::Type type) | |
| constructor from data vector | |
| template<class DATAX, class DATAY> | |
| GSLSplineDeriv2 (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> | |
| GSLSplineDeriv2 (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 | |
| GSLSplineDeriv2 (const SplineBase &) | |
| constructor from base | |
| GSLSplineDeriv2 (const GSLSplineDeriv2 &) | |
| copy constructor | |
| virtual | ~GSLSplineDeriv2 () |
| destructor | |
| virtual double | operator() (double a) const |
| main method: evaluate the function | |
| virtual double | operator() (const Argument &x) const |
| main method: evaluate the function | |
| virtual unsigned int | dimensionality () const |
| virtual bool | hasAnalyticDerivative () const |
| Does this function have an analytic derivative? | |
| virtual Genfun::Derivative | partial (unsigned int i) const |
| Derivatives. | |
| const SplineBase & | spline () const |
| acess to the spline function | |
| operator const SplineBase & () const | |
| cast operator to the spline function | |
Private Member Functions | |
| GSLSplineDeriv2 () | |
| default construtor is desabled ; | |
| GSLSplineDeriv2 & | operator= (const GSLSplineDeriv2 &) |
| assignement operator is desabled ; | |
Private Attributes | |
| SplineBase | m_spline |
Definition at line 418 of file Splines.h.
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | 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 = GSLSplineDeriv2( x , y , GaudiMath::Interpolation::Cspline ) ; const double value = 1 ; const double result = func( value ) ;
| x | vector of x | |
| y | vector of y | |
| type | interpolation type |
Data1D x = .. ; Data1D y = .. ; const AbsFunction& func = GSLSplineDeriv( x , y , GaudiMath::Interpolation::Cspline ) ; const double value = 1 ; const double result = func( value ) ;
| x | vector of x | |
| y | vector of y | |
| type | interpolation type |
Definition at line 427 of file Splines.cpp.
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | const Data2D & | data, | |
| const GaudiMath::Interpolation::Type | type | |||
| ) |
constructor from data vector
Data2D data = ... ; const AbsFunction& func = GSLSplineDeriv2( data , GaudiMath::Interpolation::Cspline ); const double value = 1 ; const double result = func( value ) ;
| data | vector of (x,y) pairs | |
| type | interpolation type |
Data2D data = ... ; const AbsFunction& func = GSLSplineDeriv2( data , GaudiMath::Interpolation::Cspline ); const double value = 1 ; const double result = func( value ) ;
| data | vector of (x,y) pairs | |
| type | interpolation type |
Definition at line 456 of file Splines.cpp.
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | 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 = GSLSpline( GaudiMath::Interpoaltion::Cspline , x.begin () , x.end () , y.begin () ); const double value = 1 ; const double result = func( value ) ;
| begin_x | begin of X-sequence | |
| end_x | end of X-sequence | |
| begin_Y | begin of Y-sequence | |
| type | interpolation type |
Definition at line 500 of file Splines.h.
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | const GaudiMath::Interpolation::Type | type, | |
| DATA | begin, | |||
| DATA | end | |||
| ) | [inline] |
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | const SplineBase & | right | ) |
constructor from base
constructor from SplineBase
Definition at line 467 of file Splines.cpp.
00468 : AbsFunction () 00469 , m_spline ( right ) 00470 {}
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | const GSLSplineDeriv2 & | right | ) |
copy constructor
Definition at line 477 of file Splines.cpp.
00478 : AbsFunction () 00479 , m_spline ( right ) 00480 {}
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::~GSLSplineDeriv2 | ( | ) | [virtual] |
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::GSLSplineDeriv2 | ( | ) | [private] |
default construtor is desabled ;
| double Genfun::GaudiMathImplementation::GSLSplineDeriv2::operator() | ( | double | a | ) | const [virtual] |
main method: evaluate the function
Definition at line 490 of file Splines.cpp.
00491 { return m_spline.deriv2 ( x ) ; }
| double Genfun::GaudiMathImplementation::GSLSplineDeriv2::operator() | ( | const Argument & | x | ) | const [virtual] |
main method: evaluate the function
Definition at line 493 of file Splines.cpp.
00494 { return m_spline.deriv2 ( x[0] ) ; }
| virtual unsigned int Genfun::GaudiMathImplementation::GSLSplineDeriv2::dimensionality | ( | ) | const [inline, virtual] |
| virtual bool Genfun::GaudiMathImplementation::GSLSplineDeriv2::hasAnalyticDerivative | ( | ) | const [inline, virtual] |
| Genfun::Derivative Genfun::GaudiMathImplementation::GSLSplineDeriv2::partial | ( | unsigned int | i | ) | const [virtual] |
Derivatives.
Definition at line 500 of file Splines.cpp.
00501 { 00502 if ( i >= 1 ) 00503 { 00504 const AbsFunction& aux = GaudiMath::Constant( 0.0 , 1 ) ; 00505 return Genfun::FunctionNoop( &aux ) ; 00506 } 00507 const AbsFunction& aux = GaudiMath::Derivative( *this , i ) ; 00508 return Genfun::FunctionNoop( &aux ) ; 00509 }
| const SplineBase& Genfun::GaudiMathImplementation::GSLSplineDeriv2::spline | ( | ) | const [inline] |
| Genfun::GaudiMathImplementation::GSLSplineDeriv2::operator const SplineBase & | ( | ) | const [inline] |
| GSLSplineDeriv2& Genfun::GaudiMathImplementation::GSLSplineDeriv2::operator= | ( | const GSLSplineDeriv2 & | ) | [private] |
assignement operator is desabled ;