Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Core::Histogram::Histogram1dTem< ElemT > Class Template Reference

Note:
When you want a histogram of integers (i.e.
More...

#include <Histogram1dTem.h>

Inheritance diagram for Impala::Core::Histogram::Histogram1dTem< ElemT >:

Inheritance graph
[legend]
Collaboration diagram for Impala::Core::Histogram::Histogram1dTem< ElemT >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Histogram1dTem (ElemT low, ElemT high, int binCount, ElemT *outliers)
 Histogram1dTem (ElemT low, ElemT high, int binCount, ElemT *outliers, ElemT *data)
virtual ~Histogram1dTem ()
ElemT GetLow ()
ElemT GetHigh ()
int GetBinCount ()
void GetBinRange (int bin, ElemT &low, ElemT &high)
void SetRange (ElemT low, ElemT high)
void Clear ()
void AddWeight (ElemT value, double weight=1.)
void AddWeightSafe (ElemT value, double weight=1.)
ElemT GetWeight (ElemT value)
ElemT TotalWeight () const
void Normalize ()
void MakeCumulative ()
int ValueToBin (ElemT value)
Impala::Real64 OutlierPercentage ()
void Dump (bool doData)

Private Attributes

ElemT mLow
ElemT mHigh
ElemT mBinWidth
int mBinCount
ElemT * mOutliers
ElemT mLocalOutliers

Detailed Description

template<class ElemT>
class Impala::Core::Histogram::Histogram1dTem< ElemT >

Note:
When you want a histogram of integers (i.e.

the values are ints while the weights may be anything) create a histogram with low = <lowest value>="">-0.5 and high = <highest value>="">+0.5; otherwise the binwidth is too low (all the weights to the highest bin would fall just outside the histogram). See computation of mBinWidht in SetRange().

Definition at line 23 of file Histogram1dTem.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:12:25 2010 for ImpalaSrc by  doxygen 1.5.1