ContRap-Libraries
|
Class RealFunction represents an interface for functions from reals to reals. More...
#include <functions.h>
Public Member Functions | |
virtual | ~RealFunction () |
Virtual destructor. | |
virtual double | operator() (const std::vector< double > &x) |
Evaluates the function at a given point. | |
virtual double | operator() (double x)=0 |
Evaluates the function at a given point. | |
virtual int | get_arity () const |
Returns the number of expected arguments. |
Class RealFunction represents an interface for functions from reals to reals.
virtual crp::RealFunction::~RealFunction | ( | ) | [inline, virtual] |
Virtual destructor.
virtual int crp::RealFunction::get_arity | ( | ) | const [inline, virtual] |
Returns the number of expected arguments.
Implements crp::Function< double >.
virtual double crp::RealFunction::operator() | ( | const std::vector< double > & | x | ) | [inline, virtual] |
Evaluates the function at a given point.
x | Evaluation point |
Implements crp::Function< double >.
virtual double crp::RealFunction::operator() | ( | double | x | ) | [pure virtual] |
Evaluates the function at a given point.
x | Evaluation point |
Implemented in crp::RealPolynomial, and crp::RealStepFunction.