User Documentation
RAVL, Recognition And Vision Library
Ravl - Logic - Decision Tree - DecisionExamplesC

DecisionExamplesC::DecisionExamplesC(const DataSet2C &)
DecisionExamplesC::Dump(ostream &) const
DecisionExamplesC::Frequency(const Tuple2C &) const
DecisionExamplesC::AddExample(const StateC &,const LiteralC &)
DecisionExamplesC::Examples(void) const
DecisionExamplesC::Seperate(const LiteralC &,DecisionExamplesC &,DecisionExamplesC &) const
DecisionExamplesC::Decisions(void) const
DecisionExamplesC::ListDecisions(void) const
DecisionExamplesC::ProbableDecision(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::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

Decision Example Set.
include "Ravl/Logic/DecisionExamples.hh"
User Level:Normal
In Scope:RavlLogicN

Parent Classes: Methods:
Default constructor.
Creates an invalid handle.


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

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

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

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

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

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

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

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

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

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

bool operator !=(const RCHandleC<DecisionExamplesBodyC> & 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.

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

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

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

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