Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Pattern Recognition - Data Set - DataSet2C<class Sample1T,class Sample2T>
 

  PUBLIC
DataSet2C::DataSet2C(void)
DataSet2C::DataSet2C(UIntT)
DataSet2C::DataSet2C(const Sample1T &,const Sample2T &)
DataSet2C::DataSet2C(DataSet2BodyC &)
DataSet2C::Body(void)
DataSet2C::Body(void) const
DataSet2C::Sample2(void)
DataSet2C::Sample2(void) const
DataSet2C::Append(const Element1T &,const Element2T &)
DataSet2C::ExtractSample(RealT)
DataSet1C::Body(void)
DataSet1C::Body(void) const
DataSet1C::Sample1(void)
DataSet1C::Sample1(void) const
DataSet1C::Append(const Element1T &)
DataSet1C::ExtractSample(RealT)
DataSet1C::Size(void) const
DataSetBaseC::Body(void)
DataSetBaseC::Body(void) const
DataSetBaseC::Shuffle(void)
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 &)

   DataSet2C<class Sample1T,class Sample2T>   
 
Data set
 
include "Ravl/PatternRec/DataSet2.hh"
Source file:Ravl/PatternRec/DataSet/DataSet2.hh
User Level:Normal
Library:RavlPatternRec
In Scope:RavlN

Parent Classes: Derived Classes: Typedefs:
typedef typename Sample2T::ElementT Element2T;

Methods:
DataSet2C()
Default constructor.

DataSet2C(UIntT sizeEstimate)
Constructor.

DataSet2C(const Sample1T & dat1,const Sample2T & dat2)
Create a dataset from a sample

DataSet2C(DataSet2BodyC<Sample1T,Sample2T> & bod)
Body constructor.

DataSet2BodyC<Sample1T,Sample2T> & Body()
Access body.

const DataSet2BodyC<Sample1T,Sample2T> & Body() const
Access body.

Sample2T & Sample2()
Access complete sample.

const Sample2T & Sample2() const
Shuffle the samples in the dataset

UIntT Append(const Element1T & data1,const Element2T & data2)
Append a data entry.
returns its index.

DataSet2C<Sample1T,Sample2T> ExtractSample(RealT proportion)
Extract a sample.
The elements are removed from this set. NB. The order of this dataset is NOT preserved.

#include "Ravl/PatternRec/DataSet1.hh"
DataSet1BodyC<Sample1T> & Body()
Access body.

const DataSet1BodyC<Sample1T> & Body() const
Access body.

Sample1T & Sample1()
Access complete sample.

const Sample1T & Sample1() const
Access complete sample.

UIntT Append(const Element1T & data)
Append a data entry.
returns its index.

DataSet1C<Sample1T> ExtractSample(RealT proportion)
Extract a sample.
The elements are removed from this set. NB. The order of this dataset is NOT preserved.

UIntT Size() const
Get the size of the dataset.

#include "Ravl/PatternRec/DataSetBase.hh"
DataSetBaseBodyC & Body()
Access body.

const DataSetBaseBodyC & Body() const
Access body.

void Shuffle()
Shuffle the order of the dataset.
This is an in place operation.

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

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

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

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

DataSetBaseBodyC & Body()
Access body of object.

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

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


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