Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Logic - Decision Tree - DecisionTreeBaseBodyC
 

  PUBLIC
DecisionTreeBaseBodyC::DecisionTreeBaseBodyC(void)
DecisionTreeBaseBodyC::DecisionTreeBaseBodyC(const DiscriminatorC &)
DecisionTreeBaseBodyC::Find(const StateC &)
DecisionTreeBaseBodyC::Add(const StateC &,const LiteralC &)
DecisionTreeBaseBodyC::Train(const DataSet2C &)
DecisionTreeBaseBodyC::SetDiscriminator(const DiscriminatorC &)
DecisionTreeBaseBodyC::Dump(ostream &) const
DecisionTreeBaseBodyC::BuildRuleSet(void) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   DecisionTreeBaseBodyC   
 
Decision tree body.
 
include "Ravl/Logic/DecisionTreeBase.hh"
Source file:Ravl/Logic/DecisionTree/DecisionTreeBase.hh
User Level:Develop
Library:RavlLogic
In Scope:RavlLogicN

Parent Classes: Derived Classes: Variables:
DiscriminatorC discriminator;
Used in building the tree.

DecisionTreeElementC root;
Root of tree.

Methods:
DecisionTreeBaseBodyC()
Default constructor.
Use the default discriminator.

DecisionTreeBaseBodyC(const DiscriminatorC & desc)
Constructor.

DecisionTreeLeafC Find(const StateC & state)
Find the decision for given 'state'.

bool Add(const StateC & state,const LiteralC & decision)
Add a new example to the tree.

void Train(const DataSet2C<SampleStateC,SampleLiteralC> & data)
Train the decision tree with the new data.

void SetDiscriminator(const DiscriminatorC & desc)
Set the discriminator to use for training.

void Dump(ostream & out) const
Dump the tree in a human readable form to stream out.

StateC BuildRuleSet() const
Build a rule set from the decision tree.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002