Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Logic - Decision Tree - DecisionTreeC<class DataT>
 

  PUBLIC
DecisionTreeC::DecisionTreeC(void)
DecisionTreeC::DecisionTreeC(DecisionTreeBodyC &)
DecisionTreeC::Body(void)
DecisionTreeC::Body(void) const
DecisionTreeBaseC::Body(void)
DecisionTreeBaseC::Body(void) const
DecisionTreeBaseC::Find(const StateC &)
DecisionTreeBaseC::Add(const StateC &,const LiteralC &)
DecisionTreeBaseC::Train(const DataSet2C &)
DecisionTreeBaseC::SetDiscriminator(const DiscriminatorC &)
DecisionTreeBaseC::Dump(ostream &) const
DecisionTreeBaseC::BuildRuleSet(void) const
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   DecisionTreeC<class DataT>   
 
Decision tree.
 
include "Ravl/Logic/DecisionTree.hh"
Source file:Ravl/Logic/DecisionTree/DecisionTree.hh
User Level:Normal
Library:RavlLogic
In Scope:RavlLogicN

Parent Classes: Methods:
DecisionTreeC()
Default constructor.
creates an invalid handle.

DecisionTreeC(DecisionTreeBodyC<DataT> & bod)
Body constructor.

DecisionTreeBodyC<DataT> & Body()
Access body.

const DecisionTreeBodyC<DataT> & Body() const
Access body.

#include "Ravl/Logic/DecisionTreeBase.hh"
DecisionTreeBaseBodyC & Body()
Access body.

const DecisionTreeBaseBodyC & Body() const
Access body.

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"
const RCHandleC<DecisionTreeBaseBodyC> & operator =(const RCHandleC<DecisionTreeBaseBodyC> & oth)
Assign handle.

RCHandleC<DecisionTreeBaseBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<DecisionTreeBaseBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<DecisionTreeBaseBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

DecisionTreeBaseBodyC & Body()
Access body of object.

const DecisionTreeBaseBodyC & Body() const
Constant access to body of object.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<DecisionTreeBaseBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<DecisionTreeBaseBodyC> & obj)


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