|
Gaudi Framework, version v23r8 |
| Home | Generated: Fri May 31 2013 |
The simple class for numerical integrations. More...
#include <NumericalIndefiniteIntegral.h>


Classes | |
| struct | _Function |
| struct | _Workspace |
Public Types | |
| typedef std::vector< double > | Points |
| typedef for vector of singular points | |
Public Member Functions | |
| NumericalIndefiniteIntegral (const AbsFunction &function, const size_t index, const double a, const GaudiMath::Integration::Limit limit=GaudiMath::Integration::VariableHighLimit, const GaudiMath::Integration::Type type=GaudiMath::Integration::Adaptive, const GaudiMath::Integration::KronrodRule rule=GaudiMath::Integration::Default, const double epsabs=1e-10, const double epsrel=1.e-7, const size_t size=1000) | |
| From CLHEP/GenericFunctions. | |
| NumericalIndefiniteIntegral (const AbsFunction &function, const size_t index, const double a, const Points &points, const GaudiMath::Integration::Limit limit=GaudiMath::Integration::VariableHighLimit, const double epsabs=1e-9, const double epsrel=1.e-6, const size_t size=1000) | |
| standard constructor | |
| NumericalIndefiniteIntegral (const AbsFunction &function, const size_t index, const GaudiMath::Integration::Limit limit=GaudiMath::Integration::VariableHighLimit, const double epsabs=1e-9, const double epsrel=1.e-6, const size_t size=1000) | |
| standard constructor The function, created with this constructor evaluates following indefinite integral: | |
| NumericalIndefiniteIntegral (const NumericalIndefiniteIntegral &) | |
| copy constructor | |
| virtual | ~NumericalIndefiniteIntegral () |
| destructor | |
| virtual unsigned int | dimensionality () const |
| dimensionality of the problem | |
| virtual double | operator() (double argument) const |
| Function value. | |
| virtual double | operator() (const Argument &argument) const |
| Function value. | |
| virtual bool | hasAnalyticDerivative () const |
| Does this function have an analytic derivative? | |
| virtual Genfun::Derivative | partial (unsigned int index) const |
| Derivatives. | |
| const AbsFunction & | function () const |
| accessor to the function itself | |
| double | a () const |
| integration limit | |
| const Points & | points () const |
| known singularities | |
| double | epsabs () const |
| absolute precision | |
| double | epsrel () const |
| relatiove precision | |
| double | result () const |
| previous result | |
| double | error () const |
| evaluate of previous error | |
| size_t | size () const |
| GaudiMath::Integration::Limit | limit () const |
| integration limit | |
| GaudiMath::Integration::Type | type () const |
| integration type | |
| GaudiMath::Integration::Category | category () const |
| integration category | |
| GaudiMath::Integration::KronrodRule | rule () const |
| integration rule | |
Protected Member Functions | |
| double | QAGI (_Function *fun) const |
| double | QAGP (_Function *fun) const |
| double | QNG (_Function *fun) const |
| double | QAG (_Function *fun) const |
| double | QAGS (_Function *fun) const |
| _Workspace * | allocate () const |
| allocate the integration workspace | |
| _Workspace * | ws () const |
| StatusCode | Exception (const std::string &message, const StatusCode &sc=StatusCode::FAILURE) const |
Private Member Functions | |
| NumericalIndefiniteIntegral () | |
| NumericalIndefiniteIntegral & | operator= (const NumericalIndefiniteIntegral &) |
Private Attributes | |
| const AbsFunction * | m_function |
| size_t | m_DIM |
| size_t | m_index |
| double | m_a |
| GaudiMath::Integration::Limit | m_limit |
| GaudiMath::Integration::Type | m_type |
| GaudiMath::Integration::Category | m_category |
| GaudiMath::Integration::KronrodRule | m_rule |
| Points | m_points |
| double * | m_pdata |
| double | m_epsabs |
| double | m_epsrel |
| double | m_result |
| double | m_error |
| size_t | m_size |
| _Workspace * | m_ws |
| Argument | m_argument |
The simple class for numerical integrations.
It allows to evaluate following indefinite integrals:
Definition at line 76 of file NumericalIndefiniteIntegral.h.
typedef for vector of singular points
Definition at line 80 of file NumericalIndefiniteIntegral.h.
| Genfun::GaudiMathImplementation::NumericalIndefiniteIntegral::NumericalIndefiniteIntegral | ( | const AbsFunction & | function, |
| const size_t | index, | ||
| const double | a, | ||
| const GaudiMath::Integration::Limit | limit = GaudiMath::Integration::VariableHighLimit, |
||
| const GaudiMath::Integration::Type | type = GaudiMath::Integration::Adaptive, |
||
| const GaudiMath::Integration::KronrodRule | rule = GaudiMath::Integration::Default, |
||
| const double | epsabs = 1e-10, |
||
| const double | epsrel = 1.e-7, |
||
| const size_t | size = 1000 |
||
| ) |
From CLHEP/GenericFunctions.
from CLHEP/GenericFunctions
Standard constructor The function, created with this constructor evaluates following indefinite integral:
for value of limit = VariableHighLimit and the integral
for value of limit = VariableLowLimit
If function contains singularities, the type = Type::AdaptiveSingular need to be used
For faster integration of smooth function non-adaptive integration can be used: type = Type::NonAdaptive need to be used
For adaptive integration one can specify the order of Gauss-Kronrad integration rule rule = KronrodRule::Gauss15 The higher-order rules give better accuracy for smooth functions, while lower-order rules save the time when the function contains local difficulties, such as discontinuites.
gsl_integration_qng is used for type = Type:NonAdaptive :gsl_integration_qag is used for type = Type:Adaptive :gsl_integration_qags is used for type = Type:AdaptiveSingular :| function | the base function |
| index | the variable index |
| a | integration limit |
| limit | flag to distinguisch low variable limit from high variable limit |
| type | the integration type (adaptive, non-adaptive or adaptive for singular functions |
| key | Gauss-Kronrad integration rule |
| epsabs | absolute precision for integration |
| epsrel | relative precision for integration |
| lim | bisection limit |
Standard constructor
| function | the base function |
| index | the variable index |
| a | integration limit |
| limit | flag to distinguisch low variable limit from high variable limit |
| type | the integration type (adaptive, non-adaptive or adaptive for singular functions |
| key | Gauss-Kronrad integration rule |
| epsabs | absolute precision for integration |
| epsrel | relative precision for integration |
| lim | bisection limit |
Definition at line 83 of file NumericalIndefiniteIntegral.cpp.
| Genfun::GaudiMathImplementation::NumericalIndefiniteIntegral::NumericalIndefiniteIntegral | ( | const AbsFunction & | function, |
| const size_t | index, | ||
| const double | a, | ||
| const Points & | points, | ||
| const GaudiMath::Integration::Limit | limit = GaudiMath::Integration::VariableHighLimit, |
||
| const double | epsabs = 1e-9, |
||
| const double | epsrel = 1.e-6, |
||
| const size_t | size = 1000 |
||
| ) |
standard constructor
The function, created with this constructor evaluates following indefinite integral:
for value of limit = VariableHighLimit and the integral
for value of limit = VariableLowLimit
The integrand is assumed to have a known discontinuities
gsl_integration_qagp is used for integration| function | the base function |
| index | the variable index |
| a | integration limit |
| limit | flag to distinguisch low variable limit from high variable limit |
| points | list of known function singularities |
| epsabs | absolute precision for integration |
| epsrel | relative precision for integration |
| function | the base function |
| index | the variable index |
| a | integration limit |
| limit | flag to distinguisch low variable limit from high variable limit |
| points | list of known function singularities |
| epsabs | absolute precision for integration |
| epsrel | relative precision for integration |
Definition at line 133 of file NumericalIndefiniteIntegral.cpp.
| Genfun::GaudiMathImplementation::NumericalIndefiniteIntegral::NumericalIndefiniteIntegral | ( | const AbsFunction & | function, |
| const size_t | index, | ||
| const GaudiMath::Integration::Limit | limit = GaudiMath::Integration::VariableHighLimit, |
||
| const double | epsabs = 1e-9, |
||
| const double | epsrel = 1.e-6, |
||
| const size_t | size = 1000 |
||
| ) |
standard constructor The function, created with this constructor evaluates following indefinite integral:
standard constructor the integral limt is assumed to be infinity
for value of limit = VariableHighLimit and the integral
for value of limit = VariableLowLimit
gsl_integration_qagil and gsl_integration_qagiu are used for adapive integration| function | the base function |
| index | the variable index |
| limit | flag to distinguisch low variable limit from high variable limit |
| singularities | list of known function singularities |
| function | the base function |
| index | the variable index |
| limit | flag to distinguisch low variable limit from high variable limit |
Definition at line 181 of file NumericalIndefiniteIntegral.cpp.
| Genfun::GaudiMathImplementation::NumericalIndefiniteIntegral::NumericalIndefiniteIntegral | ( | const NumericalIndefiniteIntegral & | right | ) |
copy constructor
Definition at line 216 of file NumericalIndefiniteIntegral.cpp.
|
virtual |
destructor
Definition at line 244 of file NumericalIndefiniteIntegral.cpp.
|
private |
|
inline |
|
protected |
allocate the integration workspace
Definition at line 361 of file NumericalIndefiniteIntegral.cpp.
|
inline |
integration category
Definition at line 320 of file NumericalIndefiniteIntegral.h.
|
inlinevirtual |
dimensionality of the problem
Definition at line 278 of file NumericalIndefiniteIntegral.h.
|
inline |
absolute precision
Definition at line 300 of file NumericalIndefiniteIntegral.h.
|
inline |
relatiove precision
Definition at line 302 of file NumericalIndefiniteIntegral.h.
|
inline |
evaluate of previous error
Definition at line 307 of file NumericalIndefiniteIntegral.h.
|
protected |
Definition at line 261 of file NumericalIndefiniteIntegral.cpp.
|
inline |
accessor to the function itself
Definition at line 294 of file NumericalIndefiniteIntegral.h.
|
inlinevirtual |
Does this function have an analytic derivative?
Definition at line 286 of file NumericalIndefiniteIntegral.h.
|
inline |
integration limit
Definition at line 314 of file NumericalIndefiniteIntegral.h.
|
virtual |
Function value.
evaluate the function
Definition at line 274 of file NumericalIndefiniteIntegral.cpp.
|
virtual |
Function value.
evaluate the function
Definition at line 314 of file NumericalIndefiniteIntegral.cpp.
|
private |
|
virtual |
Derivatives.
Definition at line 292 of file NumericalIndefiniteIntegral.cpp.
|
inline |
known singularities
Definition at line 298 of file NumericalIndefiniteIntegral.h.
|
protected |
Definition at line 507 of file NumericalIndefiniteIntegral.cpp.
|
protected |
Definition at line 376 of file NumericalIndefiniteIntegral.cpp.
|
protected |
Definition at line 413 of file NumericalIndefiniteIntegral.cpp.
|
protected |
Definition at line 549 of file NumericalIndefiniteIntegral.cpp.
|
protected |
Definition at line 469 of file NumericalIndefiniteIntegral.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 310 of file NumericalIndefiniteIntegral.h.
|
inline |
|
inlineprotected |
Definition at line 341 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 363 of file NumericalIndefiniteIntegral.h.
|
mutableprivate |
Definition at line 382 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 367 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 360 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 373 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 374 of file NumericalIndefiniteIntegral.h.
|
mutableprivate |
Definition at line 377 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 359 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 361 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 365 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 371 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 370 of file NumericalIndefiniteIntegral.h.
|
mutableprivate |
Definition at line 376 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 368 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 379 of file NumericalIndefiniteIntegral.h.
|
private |
Definition at line 366 of file NumericalIndefiniteIntegral.h.
|
mutableprivate |
Definition at line 380 of file NumericalIndefiniteIntegral.h.