LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::decisionTree Class Reference

This is the base class for all decision trees in the LTI-Lib. More...

#include <ltiDecisionTree.h>

Inheritance diagram for lti::decisionTree:
Inheritance graph
[legend]
Collaboration diagram for lti::decisionTree:
Collaboration graph
[legend]

List of all members.

Classes

class  dtNode
 a simple Node for decision trees More...
class  parameters
 the parameters for the class decisionTree More...

Public Member Functions

 decisionTree ()
 decisionTree (const decisionTree &other)
virtual ~decisionTree ()
virtual const char * getTypeName () const
decisionTreecopy (const decisionTree &other)
decisionTreeoperator= (const decisionTree &other)
const parametersgetParameters () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Static Protected Attributes

static const dtNodenodeArray []
static const objectFactory
< dtNode
nodeFactory

Detailed Description

This is the base class for all decision trees in the LTI-Lib.


Constructor & Destructor Documentation

lti::decisionTree::decisionTree (  ) 

default constructor

lti::decisionTree::decisionTree ( const decisionTree other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::decisionTree::~decisionTree (  )  [virtual]

destructor


Member Function Documentation

decisionTree& lti::decisionTree::copy ( const decisionTree other  ) 

copy data of "other" classifier.

Parameters:
other the classifier to be copied
Returns:
a reference to this classifier object

Reimplemented from lti::supervisedInstanceClassifier.

Reimplemented in lti::crispDecisionTree, and lti::manualCrispDecisionTree.

const parameters& lti::decisionTree::getParameters (  )  const
virtual const char* lti::decisionTree::getTypeName (  )  const [virtual]

returns the name of this type ("decisionTree")

Reimplemented from lti::supervisedInstanceClassifier.

Reimplemented in lti::crispDecisionTree, and lti::manualCrispDecisionTree.

decisionTree& lti::decisionTree::operator= ( const decisionTree other  ) 

alias for copy member

Parameters:
other the classifier to be copied
Returns:
a reference to this classifier object

Reimplemented from lti::supervisedInstanceClassifier.

Reimplemented in lti::crispDecisionTree, and lti::manualCrispDecisionTree.

virtual bool lti::decisionTree::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

read the parameters from the given ioHandler

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::classifier.

Reimplemented in lti::crispDecisionTree.

virtual bool lti::decisionTree::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

write the parameters in the given ioHandler

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::classifier.

Reimplemented in lti::crispDecisionTree.


Member Data Documentation

const dtNode* lti::decisionTree::nodeArray[] [static, protected]

The array of all dtNodes.

The objectFactory for all types of dtNodes.


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

Generated on Sat Apr 10 15:26:50 2010 for LTI-Lib by Doxygen 1.6.1