User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Pattern Recognition - Data Set - SampleLabelC
 

  PUBLIC
SampleLabelC::SampleLabelC(SizeT)
SampleLabelC::SampleLabelC(const SArray1dC &)
SampleLabelC::SampleLabelC(const SampleC &)
SampleLabelC::MaxValue(void) const
SampleLabelC::SampleVector(RealT,RealT,IntT) const
SampleDiscreteC::Histogram(void) const
SampleDiscreteC::Histogram(const CollectionC &) const
SampleDiscreteC::ListInstancesOfLabels(void) const
SampleDiscreteC::ListInstancesOfLabels(const CollectionC &) const
SampleC::SubSample(const CollectionC &)
SampleC::ExtractEntry(int)
SampleC::Append(const DataT &)
SampleC::operator +=(const DataT &)
SampleC::Size(void) const
SampleC::PickElement(UIntT)
SampleC::Nth(UIntT)
SampleC::Nth(UIntT) const
SampleC::Pick(void)
SampleC::operator [](IndexC)
SampleC::operator [](IndexC) const
SampleC::DArray(void)
SampleC::DArray(void) const
SampleC::First(void)
SampleC::First(void) const
SampleC::Last(void)
SampleC::Last(void) const
SampleC::IsEmpty(void) const

   SampleLabelC   
 
Sample of labels.
 
include "Ravl/PatternRec/SampleLabel.hh"
User Level:Normal
Library:RavlPatternRec
In Scope:RavlN

Parent Classes: Methods:
SampleLabelC(SizeT maxSize = 10)
Create a sample of data with a maximum size

SampleLabelC(const SArray1dC<UIntT> & dat)
Create a sample of data from an array

SampleLabelC(const SampleC<UIntT> & sample)
Construct from base class.

UIntT MaxValue() const
Find the value of the largest label.

SampleC<VectorC> SampleVector(RealT inClass = 1,RealT outClass = 0,IntT maxLabel = - 1) const
Convert a sample of labels to vectors
Where the label index is set to 'inClass' and the rest to 'outClass'.

#include "Ravl/PatternRec/SampleDiscrete.hh"
HistogramC<UIntT> Histogram() const
Compute an occurrence histogram for sample.

HistogramC<UIntT> Histogram(const CollectionC<UIntT> & index) const
Compute an occurrence histogram of given elements.

RCHashC<UIntT,CollectionC<UIntT>> ListInstancesOfLabels() const
List all the instances (by sample no) of each Label in the sample.

RCHashC<UIntT,CollectionC<UIntT>> ListInstancesOfLabels(const CollectionC<UIntT> & index) const
List all the instances (by sample no) of each Label in the sample.
If index is set, only search the sample no's given in it.

#include "Ravl/PatternRec/Sample.hh"
SampleC<UIntT> SubSample(const CollectionC<UIntT> & x)
Take a subsample of the given indexes in x.

UIntT ExtractEntry(int ind)
Extract an entry from sample.

UIntT Append(const UIntT & dat)
Insert a single sample into sample

UIntT operator +=(const UIntT & dat)
Indentical to Append().

SizeT Size() const
Return the number of valid samples in the collection

UIntT PickElement(UIntT i)
Pick a item i from the collection
Note: The order of the collection is NOT preserved. This minimizes the distruption to the underlying representation by removing an element from the end of the array and placing it in the hole left by removing 'i'.

UIntT & Nth(UIntT i)
Access nth element in sample.

const UIntT & Nth(UIntT i) const
Access nth element in sample.

UIntT Pick()
Pick a random item from the collection
Note: The order of the collection is NOT preserved.

UIntT & operator [](IndexC ind)
Access a sample.

const UIntT & operator [](IndexC ind) const
Access a sample.

DArray1dC<UIntT> & DArray()
Access DArray.
For internal use only.

const DArray1dC<UIntT> & DArray() const
Access DArray.
For internal use only.

UIntT & First()
Access first element in the array.

const UIntT & First() const
Access first element in the array.

UIntT & Last()
Access last element in the array.

const UIntT & Last() const
Access last element in the array.

bool IsEmpty() const
Is this empty ?


Maintainer:Kieron Messer, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002