Absolute value of a term.
More...
#include <TermAbs.h>
Public Member Functions |
| Term * | differentiate (TermVariable *variable) throw (ProblemMismatchException) |
| | Determines the partial derivative of the term.
|
|
double | evaluate () |
| bool | less (const Term *term) const |
| | Compares this term to an other term.
|
| std::string | toString () const |
| | Convert term to string.
|
| double | evaluate (const DoubleVector *variableValues) |
| | Evaluates term.
|
| double | evaluate (const DoubleVector *variableValues, TermValueSet *termValues) |
| | Evaluates term.
|
| virtual Problem * | getProblem () const |
| | Returns the problem to which the term belongs.
|
| const int | getTermIndex () |
| | Get term index.
|
Static Public Member Functions |
| static TermAbs * | create (Problem *problem, Term *term) throw (ProblemMismatchException) |
| | Creates term.
|
Protected Member Functions |
| double | eval (const DoubleVector *variableValues, TermValueSet *termValues) |
| | Evaluates term.
|
| | TermAbs (Problem *problem, Term *term) |
| | Creates absolute value term.
|
|
virtual | ~TermAbs () |
| | Destroys term.
|
| void | setTermIndex (const int termIndex) |
| | Set term index.
|
| | Term (Problem *problem) |
| | Creates a term.
|
|
virtual | ~Term () |
| | Destroys a term.
|
Additional Inherited Members |
|
static const int | INVALID_INDEX = -1 |
Detailed Description
Absolute value of a term.
Definition at line 28 of file TermAbs.h.
Constructor & Destructor Documentation
Creates absolute value term.
- Parameters
-
| problem | problem |
| value | value |
Definition at line 32 of file TermAbs.cc.
Member Function Documentation
Creates term.
- Parameters
-
| problem | problem |
| value | value |
- Returns
- term
Definition at line 49 of file TermAbs.cc.
Determines the partial derivative of the term.
- Parameters
-
| variable | variable with respect to which the derivative shall be calculated |
- Returns
- partial derivative
Reimplemented from Term.
Definition at line 56 of file TermAbs.cc.
| double TermAbs::eval |
( |
const DoubleVector * |
variableValues, |
|
|
TermValueSet * |
termValues |
|
) |
| |
|
protectedvirtual |
Evaluates term.
- Parameters
-
| variableValues | values of the variables |
| termValues | values of the terms |
- Returns
Reimplemented from Term.
Definition at line 64 of file TermAbs.cc.
| bool TermAbs::less |
( |
const Term * |
term | ) |
const |
|
virtual |
Compares this term to an other term.
- Parameters
-
| term | term to compare this term with |
- Returns
- true if this term is before the other term
Reimplemented from Term.
Definition at line 71 of file TermAbs.cc.
| std::string TermAbs::toString |
( |
| ) |
const |
|
virtual |
Convert term to string.
- Returns
- string
Reimplemented from Term.
Definition at line 83 of file TermAbs.cc.
The documentation for this class was generated from the following files: