Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
BinTableC::BinTableC(const IT &)
BinTableC::operator[](const IT &)
BinTableC::operator[](const IT &) const
BinTableC::Bin(const IT &)
BinTableC::Bin(const DIT &)
BinTableC::Empty(void)
BinTableC::GetBinSize(void) const
BinTableC::Scale(const IT &) const
BinTableC::GetBin(const IT &)
BinTableC::BinCentre(const IT &) const
BinTableC::IsEmpty(void) const
BinTableC::SetBinSize(const IT &)
BinTableC::Bin(const IT &) const
BinTableC<class IT,class DIT,class BT>
 
A table of bins. Hashing for real valued paramiters.
 
include "amma/BinTable.hh"
User Level:Default
Library:SparHist
Example:exBnd.cc
Section:Statistics.Histograms Containers.Hash Tables
In Scope:std

Comments:
Note: This only works for multi-dementional tables. use RealBinTable1dC for single dimentional tables. SMALL OBJECT

Template paramiter. Examples.

IT - Index Type. ( Vector2dC )

DIT - Descritised index type. ( Index2dC )

BT - Bin Type. ( x )

Variables:
IT BinSize;
Scaling factor for bins.

HashARC Bins;
Table of bins.

Methods:
BinTableC(const IT & nBinSize)
Constructor.

BT & operator[](const IT & Pnt)
Access a bin.

const BT * operator[](const IT & Pnt) const
Constant access to a bin.
May return NULL !

BT & Bin(const IT & Pnt)
Access a bin.

BT & Bin(const DIT & Pnt)
Access a bin directly.
inline const BT *Bin(const IT &Pnt) const; Constant access to a bin. May return NULL !

void Empty(void)
Remove all items from table.

const IT & GetBinSize(void) const
Get size of bins.

DIT Scale(const IT & Ind) const
Scale and descritise an input point.

BT * GetBin(const IT & Pnt)
See if bins present.

IT BinCentre(const IT & at) const
Get centre of bin containing point at.

BooleanT IsEmpty() const
Test if table is empty.

void SetBinSize(const IT & nBinSize)
Set the bin size.
NB. This can only be used with an empty table.

const BT * Bin(const IT & Pnt) const


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001