Alexandria
2.19
Please provide a description of the project.
|
Interface class representing a function. More...
#include <Function.h>
Public Member Functions | |
virtual | ~Function ()=default |
Default destructor. More... | |
virtual double | operator() (const double x) const =0 |
virtual std::unique_ptr< Function > | clone () const =0 |
Interface class representing a function.
A function is an object which can convert a value from domain X to a value of domain Y. This interface is the root of a hierarchy of classes which perform such conversions, with the parenthesis operator. Because this class is designed for inheritance, it requires the implementation of the clone() method for copying functions when a reference of type Function is used.
Definition at line 46 of file Function.h.
|
virtualdefault |
Default destructor.
|
pure virtual |
Creates a clone of the function object. All subclasses must implement this method, to enable copying of Function objects when only a reference to the Function class is available.
Implemented in Euclid::MathUtils::DefaultMultiplication, Euclid::MathUtils::Polynomial, Euclid::MathUtils::Piecewise, and Euclid::MathUtils::FunctionAdapter.
|
pure virtual |
Converts the value x from the input domain to the output domain.
x | The value to convert |
Implemented in Euclid::MathUtils::Polynomial, Euclid::MathUtils::Piecewise, Euclid::MathUtils::DefaultMultiplication, and Euclid::MathUtils::FunctionAdapter.