68 void eps(
const double&
eps);
69 const double&
eps(
void)
const;
71 const bool&
silent(
void)
const;
72 const int&
iter(
void)
const;
73 const int&
calls(
void)
const;
75 const std::string&
message(
void)
const;
79 const int& order = 5);
82 const int& order = 5);
86 const GVector& previous_result);
127 return (
"GIntegrals");
Definition of interface for all GammaLib classes.
Vector class interface definition.
Interface class for all GammaLib classes.
Single parameter functions abstract base class.
Integration class for set of functions.
GVector polint(const double *xa, const GVector *ya, const int &order, const double &x, GVector *dy)
Perform Polynomial interpolation.
GVector romberg(std::vector< double > bounds, const int &order=5)
Perform Romberg integration.
void copy_members(const GIntegrals &integral)
Copy class members.
GVector m_relerr
Absolute integration errors.
GFunctions * m_kernels
Pointer to function kernels.
GVector m_abserr
Absolute integration errors.
const std::string & message(void) const
Return integration status message.
void free_members(void)
Delete class members.
const bool & silent(void) const
Get silence flag.
double m_eps
Requested relative integration precision.
bool m_has_relerr
Has relative integration errors.
int m_iter
Number of iterations used.
bool m_has_abserr
Has absolute integration errors.
const bool & is_valid(void) const
Signal if integration result is valid.
const int & calls(void) const
Get number of function calls.
GIntegrals(void)
Void constructor.
int m_calls
Number of function calls used.
GIntegrals * clone(void) const
Clone integral.
const double & eps(void) const
Get relative precision.
std::string print(const GChatter &chatter=NORMAL) const
Print integral information.
GIntegrals & operator=(const GIntegrals &integral)
Assignment operator.
void clear(void)
Clear integral.
GVector trapzd(const double &a, const double &b, const int &n, const GVector &previous_result)
Perform Trapezoidal integration for a set of functions.
bool m_isvalid
Integration result valid (true=yes)
const int & fixed_iter(void) const
Return fixed number of iterations.
void init_members(void)
Initialise class members.
const GFunctions * kernels(void) const
Get function kernels.
const int & max_iter(void) const
Return maximum number of iterations.
bool m_silent
Suppress integration warnings in console.
std::string classname(void) const
Return class name.
int m_fix_iter
Fixed number of iterations.
std::string m_message
Status message (if result is invalid)
int m_max_iter
Maximum number of iterations.
const int & iter(void) const
Return number of iterations.
virtual ~GIntegrals(void)
Destructor.