User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Pattern Recognition - Data Set - SampleC<class DataT>
 

  PUBLIC
SampleC::SampleC(SizeT)
SampleC::SampleC(const SArray1dC &)
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

   SampleC<class DataT>   
 
Sample of DataT's
 
include "Ravl/PatternRec/Sample.hh"
User Level:Normal
Library:RavlPatternRec
In Scope:RavlN

Parent Classes: Derived Classes: Typedefs:
typedef DataT ElementT;
Type of data in sample.

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

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

SampleC<DataT> SubSample(const CollectionC<UIntT> & x)
Take a subsample of the given indexes in x.

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

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

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

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

DataT 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'.

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

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

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

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

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

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

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

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

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

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

const DataT & 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