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

  PUBLIC
DecisionExamplesBodyC::DecisionExamplesBodyC(void)
DecisionExamplesBodyC::DecisionExamplesBodyC(const DataSet2C &)
DecisionExamplesBodyC::Dump(ostream &) const
DecisionExamplesBodyC::AddExample(const StateC &,const LiteralC &)
DecisionExamplesBodyC::RemoveExamples(DecisionExamplesC &)
DecisionExamplesBodyC::Frequency(const Tuple2C &) const
DecisionExamplesBodyC::Examples(void)
DecisionExamplesBodyC::Examples(void) const
DecisionExamplesBodyC::Histogram(void)
DecisionExamplesBodyC::DecisionInformation(void)
DecisionExamplesBodyC::Seperate(const LiteralC &,DecisionExamplesC &,DecisionExamplesC &) const
DecisionExamplesBodyC::Decisions(void) const
DecisionExamplesBodyC::ListDecisions(void) const
DecisionExamplesBodyC::ProbableDecision(void) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   DecisionExamplesBodyC   
 
Set of examples for a node in the decision tree.
 
include "Ravl/Logic/DecisionExamples.hh"
Source file:Ravl/Logic/DecisionTree/DecisionExamples.hh
User Level:Develop
Library:RavlLogic
In Scope:RavlLogicN

Parent Classes: Variables:
HashC> examples;
Map decisions to examples.

HistogramC> histogram;
Frequency of occurance.

Methods:
DecisionExamplesBodyC()
Default constructor.

DecisionExamplesBodyC(const DataSet2C<SampleStateC,SampleLiteralC> & data)
Construct from a dataset.

void Dump(ostream & out) const
Dump examples to a stream.

bool AddExample(const StateC & state,const LiteralC & decision)
Add an example to the node.
Return's true if example is a new one.

bool RemoveExamples(DecisionExamplesC & examples)
Remove examples from this node.

UIntT Frequency(const Tuple2C<StateC,LiteralC> & inst) const
Find the frequency of an example state and decision.

HashC<LiteralC,HSetC<StateC>> & Examples()
Access examples table, mapping decisions to examples.

const HashC<LiteralC,HSetC<StateC>> & Examples() const
Access examples table, mapping decisions to examples.

HistogramC<Tuple2C<StateC,LiteralC>> & Histogram()
Access frequency table.

RealT DecisionInformation()
Get an estimate of the information in decisions.

bool Seperate(const LiteralC & test,DecisionExamplesC & ttrue,DecisionExamplesC & tfalse) const
Split this set into to, ones where the test is true (ttrue) and ones where its false (tfalse).

UIntT Decisions() const
Get the number of different decisions represented.

DListC<LiteralC> ListDecisions() const
Make a list of decisions.

LiteralC ProbableDecision() const
Get the most likely decision given the examples.

#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