![]() |
|
|
Generated: 8 Jan 2009 |
00001 // $Id: Integral.h,v 1.2 2004/03/28 18:50:36 mato Exp $ 00002 // ============================================================================ 00003 #ifndef GAUDIMATH_INTEGRAL_H 00004 #define GAUDIMATH_INTEGRAL_H 1 00005 // ============================================================================ 00006 // Include files 00007 // ============================================================================ 00008 // GaudiKernel 00009 // ============================================================================ 00010 #include "GaudiKernel/StatusCode.h" 00011 // ============================================================================ 00012 // GaudiMath 00013 // ============================================================================ 00014 #include "GaudiMath/Integration.h" 00015 // CLHEP 00016 // ============================================================================ 00017 #include "CLHEP/GenericFunctions/AbsFunction.hh" 00018 #include "CLHEP/GenericFunctions/AbsFunctional.hh" 00019 // ============================================================================ 00020 00021 namespace GaudiMath 00022 { 00023 00024 double Integral 00025 ( const Genfun::AbsFunction& function , 00026 const double a , 00027 const double b , 00028 const GaudiMath::Integration::Type type = 00029 GaudiMath::Integration::Adaptive , 00030 const GaudiMath::Integration::KronrodRule rule = 00031 GaudiMath::Integration::Default , 00032 const double epsabs = 1.e-10 , 00033 const double epsrel = 1.e-7 , 00034 const size_t size = 1000 ); 00035 00036 double Integral 00037 ( const Genfun::AbsFunction& function , 00038 const double a , 00039 const double b , 00040 const std::vector<double>& points , 00041 const double epsabs = 1e-9 , 00042 const double epsrel = 1.e-6 , 00043 const size_t size = 1000 ) ; 00044 00045 double Integral 00046 ( const Genfun::AbsFunction& function , 00047 const double a , 00048 const GaudiMath::Integration::Inf b = 00049 GaudiMath::Integration::Infinity , 00050 const double epsabs = 1e-9 , 00051 const double epsrel = 1.e-6 , 00052 const size_t size = 1000 ) ; 00053 00054 double Integral 00055 ( const Genfun::AbsFunction& function , 00056 const GaudiMath::Integration::Inf a , 00057 const double b , 00058 const double epsabs = 1e-9 , 00059 const double epsrel = 1.e-6 , 00060 const size_t size = 1000 ) ; 00061 00062 double Integral 00063 ( const Genfun::AbsFunction& function , 00064 const GaudiMath::Integration::Inf a = 00065 GaudiMath::Integration::Infinity , 00066 const GaudiMath::Integration::Inf b = 00067 GaudiMath::Integration::Infinity , 00068 const double epsabs = 1e-9 , 00069 const double epsrel = 1.e-6 , 00070 const size_t size = 1000 ) ; 00071 00072 }; 00073 00074 // ============================================================================ 00075 // The END 00076 // ============================================================================ 00077 #endif // GAUDIMATH_INTEGRAL_H 00078 // ============================================================================