|
latest version v1.9 - last update 10 Apr 2010 |
|
Base class for decision functions of crispNode. More...
#include <ltiCrispDecisionTree.h>


Public Member Functions | |
| crispDecisionFunction () | |
| crispDecisionFunction (const crispDecisionFunction &other) | |
| ~crispDecisionFunction () | |
| const char * | getTypeName () const |
| crispDecisionFunction & | copy (const crispDecisionFunction &other) |
| crispDecisionFunction & | operator= (const crispDecisionFunction &other) |
| virtual crispDecisionFunction * | clone () const =0 |
| virtual bool | apply (const dvector &data) const =0 |
| virtual bool | write (ioHandler &handler, const bool complete=true) const |
| virtual bool | read (ioHandler &handler, const bool complete=true) |
Base class for decision functions of crispNode.
The decision function implements a condition which can either be true or false. Usually in the tree, the left node will represent true and the right node false.
| lti::crispDecisionTree::crispDecisionFunction::crispDecisionFunction | ( | ) |
default constructor
| lti::crispDecisionTree::crispDecisionFunction::crispDecisionFunction | ( | const crispDecisionFunction & | other | ) |
copy constructor
| other | the crispDecisionFunction object to be copied |
| lti::crispDecisionTree::crispDecisionFunction::~crispDecisionFunction | ( | ) |
destructor
| virtual bool lti::crispDecisionTree::crispDecisionFunction::apply | ( | const dvector & | data | ) | const [pure virtual] |
Evaluate the condition implemented in the cdf.
| data | value to be evaluated |
Implemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.
| virtual crispDecisionFunction* lti::crispDecisionTree::crispDecisionFunction::clone | ( | ) | const [pure virtual] |
returns a pointer to a clone of the crispDecisionFunction
Implemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.
| crispDecisionFunction& lti::crispDecisionTree::crispDecisionFunction::copy | ( | const crispDecisionFunction & | other | ) |
copy the contents of a crispDecisionFunction object
| other | the crispDecisionFunction object to be copied |
Reimplemented from lti::ioObject.
Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.
| const char* lti::crispDecisionTree::crispDecisionFunction::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::ioObject.
Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.
| crispDecisionFunction& lti::crispDecisionTree::crispDecisionFunction::operator= | ( | const crispDecisionFunction & | other | ) |
copy the contents of a crispDecisionFunction object
| other | the crispDecisionFunction object to be copied |
Reimplemented from lti::ioObject.
Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.
| virtual bool lti::crispDecisionTree::crispDecisionFunction::read | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | [virtual] |
read the crispDecisionFunction from the given ioHandler
| handler | the ioHandler to be used | |
| complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.
| virtual bool lti::crispDecisionTree::crispDecisionFunction::write | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | const [virtual] |
write the crispDecisionFunction in the given ioHandler
| handler | the ioHandler to be used | |
| complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.