Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
Interface representing an integrable function. More...
#include <Integrable.h>
Public Member Functions | |
virtual | ~Integrable ()=default |
Default destructor. | |
virtual double | integrate (const double a, const double b) const =0 |
![]() | |
virtual std::unique_ptr< NAryFunction > | clone () const =0 |
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.
|
virtualdefault |
Default destructor.
|
pure virtual |
Calculates the integral of the function in the range [a,b].
a | The lower bound of the integration |
b | The upper bound of the integration |
Implemented in Euclid::MathUtils::LinearInterpolator, Euclid::MathUtils::CubicInterpolator, Euclid::MathUtils::Differentiable, and Euclid::MathUtils::Piecewise.