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

  PUBLIC
DesignKNearestNeighbourC::DesignKNearestNeighbourC(void)
DesignKNearestNeighbourC::DesignKNearestNeighbourC(UIntT,const DistanceC &,bool)
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::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   DesignKNearestNeighbourC   
 
Design a discriminat function classifier.
 
include "Ravl/PatternRec/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.

#include "Ravl/PatternRec/DesignClassifyVector.hh"
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.

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:02 2002