Class for N-dimensional Histograms. More...
#include <Util.h>

Public Member Functions | |
| void | AddDimension (int binsize) |
| Add dimension with a binsize. | |
| void | Clear () |
| Clear the histogram. | |
| int | GetMax (double *dim0, double *dim1=0, double *dim2=0) |
| Get the maximum from the histogram This returns the value in the middle of the 'bin' instead of bin-number. | |
| void | Inc (double dim0, double dim1=0, double dim2=0) |
| Increase the histogram for given dimensions. | |
Protected Member Functions | |
| int | DimIndex (int dim, double val) |
| double | DimVal (int dim, int index) |
Protected Attributes | |
| std::map< Index, int > | bins |
| std::vector< int > | dim_binsize |
| void alvar::Histogram::AddDimension | ( | int | binsize | ) |
| void alvar::Histogram::Clear | ( | ) |
Clear the histogram.
Reimplemented in alvar::HistogramSubpixel.
| int alvar::Histogram::DimIndex | ( | int | dim, |
| double | val | ||
| ) | [protected] |
| double alvar::Histogram::DimVal | ( | int | dim, |
| int | index | ||
| ) | [protected] |
| int alvar::Histogram::GetMax | ( | double * | dim0, |
| double * | dim1 = 0, |
||
| double * | dim2 = 0 |
||
| ) |
Get the maximum from the histogram This returns the value in the middle of the 'bin' instead of bin-number.
Reimplemented in alvar::HistogramSubpixel.
| void alvar::Histogram::Inc | ( | double | dim0, |
| double | dim1 = 0, |
||
| double | dim2 = 0 |
||
| ) |
Increase the histogram for given dimensions.
Reimplemented in alvar::HistogramSubpixel.
std::map<Index, int> alvar::Histogram::bins [protected] |
std::vector<int> alvar::Histogram::dim_binsize [protected] |