latest version v1.9 - last update 10 Apr 2010 |
Base class for all crisp decision trees. More...
#include <ltiCrispDecisionTree.h>
Classes | |
class | crispDecisionFunction |
Base class for decision functions of crispNode. More... | |
class | crispNode |
A crisp decision tree node. More... | |
class | multivariateCrispDecisionFunction |
This class implements a multivariate decision. More... | |
class | parameters |
the parameters for the class crispDecisionTree More... | |
class | univariateCrispDecisionFunction |
This class implements the most common decision function: Each node has a real-valued threshold in one dimension only. More... | |
Public Member Functions | |
crispDecisionTree () | |
crispDecisionTree (const crispDecisionTree &other) | |
virtual | ~crispDecisionTree () |
virtual const char * | getTypeName () const |
crispDecisionTree & | copy (const crispDecisionTree &other) |
crispDecisionTree & | operator= (const crispDecisionTree &other) |
const parameters & | getParameters () const |
virtual bool | classify (const dvector &feature, outputVector &result) const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Base class for all crisp decision trees.
A crisp decision tree has the following properties:
lti::crispDecisionTree::crispDecisionTree | ( | ) |
default constructor
lti::crispDecisionTree::crispDecisionTree | ( | const crispDecisionTree & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::crispDecisionTree::~crispDecisionTree | ( | ) | [virtual] |
destructor
virtual bool lti::crispDecisionTree::classify | ( | const dvector & | feature, | |
outputVector & | result | |||
) | const [virtual] |
Classification.
Classifies the feature and returns the outputVector with the classification result.
feature | the vector to be classified | |
result | the result of the classification |
Implements lti::supervisedInstanceClassifier.
crispDecisionTree& lti::crispDecisionTree::copy | ( | const crispDecisionTree & | other | ) |
copy data of "other" classifier.
other | the classifier to be copied |
Reimplemented from lti::decisionTree.
Reimplemented in lti::manualCrispDecisionTree.
const parameters& lti::crispDecisionTree::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::decisionTree.
Reimplemented in lti::manualCrispDecisionTree.
virtual const char* lti::crispDecisionTree::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("crispDecisionTree")
Reimplemented from lti::decisionTree.
Reimplemented in lti::manualCrispDecisionTree.
crispDecisionTree& lti::crispDecisionTree::operator= | ( | const crispDecisionTree & | other | ) |
alias for copy member
other | the classifier to be copied |
Reimplemented from lti::decisionTree.
Reimplemented in lti::manualCrispDecisionTree.
virtual bool lti::crispDecisionTree::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
read the parameters 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::decisionTree.
virtual bool lti::crispDecisionTree::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
write the parameters 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::decisionTree.