Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Pattern Recognition - Classify - DesignKNearestNeighbourC
 

  PUBLIC
DesignKNearestNeighbourC::DesignKNearestNeighbourC(void)
DesignKNearestNeighbourC::DesignKNearestNeighbourC(UIntT,const DistanceC &,bool)
DesignKNearestNeighbourC::DesignKNearestNeighbourC(DesignKNearestNeighbourBodyC &)
DesignKNearestNeighbourC::Body(void)
DesignKNearestNeighbourC::Body(void) const
DesignClassifyVectorC::Body(void)
DesignClassifyVectorC::Body(void) const
DesignClassifyVectorC::Apply(const SampleC &,const SampleC &)
DesignClassifyVectorC::Apply(const SampleC &,const SampleC &,const SampleC &)
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 &)

   DesignKNearestNeighbourC   
 
Design a discriminat function classifier.
 
include "Ravl/PatternRec/DesignKNearestNeighbour.hh"
Source file:Ravl/PatternRec/Classify/DesignKNearestNeighbour.hh
User Level:Normal
Library:RavlPatternRec
In Scope:RavlN

Parent Classes: Methods:
DesignKNearestNeighbourC()
Default constructor.
Creates an invalid handle.

DesignKNearestNeighbourC(UIntT k,const DistanceC & distanceMetric = DistanceSqrEuclideanC (),bool useAverageKNN = false)
Create a new designer.
Values for k are typically 1 to 7 and should be odd.

DesignKNearestNeighbourC(DesignKNearestNeighbourBodyC & bod)
Body constructor.

DesignKNearestNeighbourBodyC & Body()
Access body.

const DesignKNearestNeighbourBodyC & Body() const
Access body.

#include "Ravl/PatternRec/DesignClassifyVector.hh"
DesignClassifyVectorBodyC & Body()
Access body.

const DesignClassifyVectorBodyC & Body() const
Access body.

ClassifyVectorC Apply(const SampleC<VectorC> & in,const SampleC<UIntT> & out)
Create a clasifier.

ClassifyVectorC Apply(const SampleC<VectorC> & in,const SampleC<UIntT> & out,const SampleC<RealT> & weight)
Create a clasifier with weights for the samples.

#include "Ravl/RefCounter.hh"
const RCHandleC<DesignClassifyVectorBodyC> & operator =(const RCHandleC<DesignClassifyVectorBodyC> & oth)
Assign handle.

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

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

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

DesignClassifyVectorBodyC & Body()
Access body of object.

const DesignClassifyVectorBodyC & 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<DesignClassifyVectorBodyC> & obj)

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


Documentation by CxxDoc: Tue Aug 13 09:59:30 2002