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

  PUBLIC
SampleVectorC::SampleVectorC(SizeT)
SampleVectorC::SampleVectorC(const SArray1dC &)
SampleVectorC::SampleVectorC(const SampleC &)
SampleVectorC::VectorSize(void) const
SampleVectorC::Mean(void) const
SampleVectorC::MeanCovariance(void) const
SampleVectorC::SumOuterProducts(void) const
SampleVectorC::TMul(const SampleC &) const
SampleVectorC::SumOuterProducts(const SampleC &) const
SampleVectorC::TMul(const SampleC &,const SampleC &) 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

   SampleVectorC   
 
Sample of vectors.
 
include "Ravl/PatternRec/SampleVector.hh"
User Level:Normal
Library:RavlPatternRec
In Scope:RavlN

Comments:
This class expects all the vectors in the sample to be of the same size.

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

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

SampleVectorC(const SampleC<VectorC> & svec)
Construct from base class.

UIntT VectorSize() const
Get the size of vectors in this sample.

VectorC Mean() const
Find the mean vector of the sample.

MeanCovarianceC MeanCovariance() const
Find the mean and covariance of the sample

MatrixRUTC SumOuterProducts() const
Compute the sum of the outerproducts.

MatrixC TMul(const SampleC<VectorC> & sam2) const
Compute the sum of the outerproducts.
sam2 must have the same size as this sample vector.

MatrixRUTC SumOuterProducts(const SampleC<RealT> & w) const
Compute the sum of the outerproducts weighting each with the corresponding value from 'w'.

MatrixC TMul(const SampleC<VectorC> & sam2,const SampleC<RealT> & w) const
Compute the sum of the outerproducts weighting each with the corresponding value from 'w'.
sam2 must have the same size as this sample vector.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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