| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Private Attributes | List of all members
Genfun::GaudiMathImplementation::GSLSpline Class Reference

`#include <GaudiMath/Splines.h>`

Inheritance diagram for Genfun::GaudiMathImplementation::GSLSpline:
[legend]
Collaboration diagram for Genfun::GaudiMathImplementation::GSLSpline:
[legend]

## Public Types
typedef SplineBase::Data1D | Data1D
typedef SplineBase::Data2D | Data2D

## Public Member Functions
| GSLSpline (const Data1D &x, const Data1D &y, const GaudiMath::Interpolation::Type type)
| constructor from vectors and type 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...
double | operator() (double a) const override
| main methgod: evaluate teh function More...
double | operator() (const Argument &x) const override
| main methgod: evaluate teh function More...
unsigned int | dimensionality () const override
bool | hasAnalyticDerivative () const override
| Does this function have an analytic derivative? More...
Genfun::Derivative | partial (unsigned int i) const override
| Derivatives. More...
const SplineBase & | spline () const
| acess to the spline function More...
| operator const SplineBase & () const
| cast operator to the spline function More...
GSLSpline & | operator= (const GSLSpline &)=delete
| assignement operator is disabled ; More...

## Private Attributes
SplineBase | m_spline

## Detailed Description

Definition at line 143 of file Splines.h.

## Member Typedef Documentation

typedef SplineBase::Data1D Genfun::GaudiMathImplementation::GSLSpline::Data1D

Definition at line 146 of file Splines.h.

typedef SplineBase::Data2D Genfun::GaudiMathImplementation::GSLSpline::Data2D

Definition at line 147 of file Splines.h.

## Constructor & Destructor Documentation

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

constructor from vectors and type

Data1D x = .. ;
Data1D y = .. ;
const AbsFunction& func =
GSLSpline( x , y , GaudiMath::Interpolation::Cspline ) ;
const double value = 1 ;
const double result = func( value ) ;

Parameters

  x | vector of x
  y | vector of y
  type | interpolation type

Definition at line 158 of file Splines.cpp.

160 : AbsFunction(), m_spline( x, y, type )
161 {
162 }
gaudirun.type
type
Definition: gaudirun.py:133
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263

Genfun::GaudiMathImplementation::GSLSpline::GSLSpline | ( | 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

  data | vector of (x,y) pairs
  type | interpolation type

Definition at line 185 of file Splines.cpp.

186 : AbsFunction(), m_spline( data, type )
187 {
188 }
gaudirun.type
type
Definition: gaudirun.py:133
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263
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"

SEQUENCE1 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 ) ;

Parameters

  begin_x | begin of X-sequence
  end_x | end of X-sequence
  begin_Y | begin of Y-sequence
  type | interpolation type

Definition at line 220 of file Splines.h.

221 : m_spline( type, begin_x, end_x, begin_y )
222 {
223 }
gaudirun.type
type
Definition: gaudirun.py:133
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263
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

  begin | begin of sequence of pairs
  end | end of sequence of pairs
  type | interpolation type

Definition at line 236 of file Splines.h.

236 : m_spline( type, begin, end )
237 {
238 }
begin
auto begin(reverse_wrapper< T > &w)
Definition: reverse.h:58
gaudirun.type
type
Definition: gaudirun.py:133
end
auto end(reverse_wrapper< T > &w)
Definition: reverse.h:64
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263

Genfun::GaudiMathImplementation::GSLSpline::GSLSpline | ( | const SplineBase & | right | ) |

constructor from base

constructor from SplineBase

Definition at line 194 of file Splines.cpp.

194 : AbsFunction(), m_spline( right ) {}
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263

## Member Function Documentation

unsigned int Genfun::GaudiMathImplementation::GSLSpline::dimensionality | ( |  | ) | const
| inline override

Definition at line 247 of file Splines.h.

247 { return 1; }

bool Genfun::GaudiMathImplementation::GSLSpline::hasAnalyticDerivative | ( |  | ) | const
| inline override

Does this function have an analytic derivative?

Definition at line 249 of file Splines.h.

249 { return true; }

Genfun::GaudiMathImplementation::GSLSpline::operator const SplineBase & | ( |  | ) | const
| inline

cast operator to the spline function

Definition at line 257 of file Splines.h.

257 { return spline(); }
Genfun::GaudiMathImplementation::GSLSpline::spline
const SplineBase & spline() const
acess to the spline function
Definition: Splines.h:255

double Genfun::GaudiMathImplementation::GSLSpline::operator() | ( | double | a | ) | const
| override

main methgod: evaluate teh function

Definition at line 198 of file Splines.cpp.

198 { return m_spline.eval( x ); }
Genfun::GaudiMathImplementation::SplineBase::eval
double eval(const double x) const
evaluate the function
Definition: Splines.cpp:97
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263

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

main methgod: evaluate teh function

Definition at line 200 of file Splines.cpp.

200 { return m_spline.eval( x[0] ); }
Genfun::GaudiMathImplementation::SplineBase::eval
double eval(const double x) const
evaluate the function
Definition: Splines.cpp:97
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263

GSLSpline& Genfun::GaudiMathImplementation::GSLSpline::operator= | ( | const GSLSpline & |  | ) |
| delete

assignement operator is disabled ;

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

Derivatives.

Definition at line 206 of file Splines.cpp.

207 {
208 if ( i >= 1 ) {
209 const AbsFunction& aux = GaudiMath::Constant( 0.0, 1 );
210 return Genfun::FunctionNoop( &aux );
211 }
212 const AbsFunction& aux = GSLSplineDeriv( *this );
213 return Genfun::FunctionNoop( &aux );
214 }
GaudiMath::Constant
Genfun::GaudiMathImplementation::Constant Constant
Definition: GaudiMath.h:26

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

acess to the spline function

Definition at line 255 of file Splines.h.

255 { return m_spline; }
Genfun::GaudiMathImplementation::GSLSpline::m_spline
SplineBase m_spline
Definition: Splines.h:263

## Member Data Documentation

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

Definition at line 263 of file Splines.h.

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

- GaudiGSL/GaudiMath/Splines.h
- GaudiGSL/src/Lib/Splines.cpp