Alexandria 2.31.4
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Euclid::MathUtils::Integrable Interface Referenceabstract

Interface representing an integrable function. More...

#include <Integrable.h>

Inheritance diagram for Euclid::MathUtils::Integrable:
Collaboration diagram for Euclid::MathUtils::Integrable:

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

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


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