Alexandria  2.16
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Euclid::MathUtils::Integrable Interface Referenceabstract

Interface representing an integrable function. More...

#include <Integrable.h>

Inheritance diagram for Euclid::MathUtils::Integrable:
[legend]
Collaboration diagram for Euclid::MathUtils::Integrable:
[legend]

Public Member Functions

virtual ~Integrable ()=default
 Default destructor. More...
 
virtual double integrate (const double a, const double b) const =0
 
- Public Member Functions inherited from Euclid::MathUtils::Function
virtual ~Function ()=default
 Default destructor. More...
 
virtual double operator() (const double x) const =0
 
virtual std::unique_ptr< Functionclone () const =0
 

Detailed Description

Interface representing an integrable function.

A function is integrable when there is a fast analytical way to calculate its integral (as opposed to a numerical calculation). The implementations of this interface should provide this calculation by implementing the integrate() method.

Definition at line 44 of file Integrable.h.

Constructor & Destructor Documentation

virtual Euclid::MathUtils::Integrable::~Integrable ( )
virtualdefault

Default destructor.

Member Function Documentation

virtual double Euclid::MathUtils::Integrable::integrate ( const double  a,
const double  b 
) const
pure virtual

Calculates the integral of the function in the range [a,b].

Parameters
aThe lower bound of the integration
bThe upper bound of the integration
Returns
The integral of the function in the range [a,b]

Implemented in Euclid::MathUtils::Piecewise, and Euclid::MathUtils::Differentiable.

Referenced by Euclid::MathUtils::integrate().


The documentation for this interface was generated from the following file: