Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
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:
Inheritance graph
[legend]
Collaboration diagram for Euclid::MathUtils::Integrable:
Collaboration graph
[legend]

Public Member Functions

virtual ~Integrable ()=default
 Default destructor.
 
virtual double integrate (const double a, const double b) const =0
 
- Public Member Functions inherited from Euclid::MathUtils::NAryFunction< N >
virtual std::unique_ptr< NAryFunctionclone () 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

◆ ~Integrable()

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

Default destructor.

Member Function Documentation

◆ integrate()

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::LinearInterpolator, Euclid::MathUtils::CubicInterpolator, Euclid::MathUtils::Differentiable, and Euclid::MathUtils::Piecewise.


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