ContRap-Libraries
Public Member Functions

crp::RealFunction Class Reference

Class RealFunction represents an interface for functions from reals to reals. More...

#include <functions.h>

Inheritance diagram for crp::RealFunction:
crp::Function< double > crp::RealPolynomial crp::RealStepFunction

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.

Detailed Description

Class RealFunction represents an interface for functions from reals to reals.


Constructor & Destructor Documentation

virtual crp::RealFunction::~RealFunction ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual int crp::RealFunction::get_arity ( ) const [inline, virtual]

Returns the number of expected arguments.

Returns:
Number of arguments

Implements crp::Function< double >.

virtual double crp::RealFunction::operator() ( const std::vector< double > &  x) [inline, virtual]

Evaluates the function at a given point.

Parameters:
xEvaluation point

Implements crp::Function< double >.

virtual double crp::RealFunction::operator() ( double  x) [pure virtual]

Evaluates the function at a given point.

Parameters:
xEvaluation point

Implemented in crp::RealPolynomial, and crp::RealStepFunction.


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