LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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.

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

Classes

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

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

const parameters& lti::decisionTree::getParameters  )  const
 

returns used parameters

Reimplemented from lti::supervisedInstanceClassifier.

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

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

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.

const objectFactory<dtNode> lti::decisionTree::nodeFactory [static, protected]
 

The objectFactory for all types of dtNodes.


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:31:55 2005 for LTI-Lib by Doxygen 1.4.4