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

lti::crispDecisionTree::crispDecisionFunction Class Reference

Base class for decision functions of crispNode. More...

#include <ltiCrispDecisionTree.h>

Inheritance diagram for lti::crispDecisionTree::crispDecisionFunction:
Inheritance graph
[legend]
Collaboration diagram for lti::crispDecisionTree::crispDecisionFunction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 crispDecisionFunction ()
 crispDecisionFunction (const crispDecisionFunction &other)
 ~crispDecisionFunction ()
const char * getTypeName () const
crispDecisionFunctioncopy (const crispDecisionFunction &other)
crispDecisionFunctionoperator= (const crispDecisionFunction &other)
virtual crispDecisionFunctionclone () 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)

Detailed Description

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.


Constructor & Destructor Documentation

lti::crispDecisionTree::crispDecisionFunction::crispDecisionFunction (  ) 

default constructor

lti::crispDecisionTree::crispDecisionFunction::crispDecisionFunction ( const crispDecisionFunction other  ) 

copy constructor

Parameters:
other the crispDecisionFunction object to be copied
lti::crispDecisionTree::crispDecisionFunction::~crispDecisionFunction (  ) 

destructor


Member Function Documentation

virtual bool lti::crispDecisionTree::crispDecisionFunction::apply ( const dvector data  )  const [pure virtual]

Evaluate the condition implemented in the cdf.

Parameters:
data value to be evaluated
Returns:
true if it meets the condition (left), false if not

Implemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.

virtual crispDecisionFunction* lti::crispDecisionTree::crispDecisionFunction::clone (  )  const [pure virtual]
crispDecisionFunction& lti::crispDecisionTree::crispDecisionFunction::copy ( const crispDecisionFunction other  ) 

copy the contents of a crispDecisionFunction object

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

Reimplemented from lti::ioObject.

Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.

const char* lti::crispDecisionTree::crispDecisionFunction::getTypeName (  )  const [virtual]
crispDecisionFunction& lti::crispDecisionTree::crispDecisionFunction::operator= ( const crispDecisionFunction other  ) 

copy the contents of a crispDecisionFunction object

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

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

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::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

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::ioObject.

Reimplemented in lti::crispDecisionTree::univariateCrispDecisionFunction, and lti::crispDecisionTree::multivariateCrispDecisionFunction.


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

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