HistogramCache Class Reference
Hash implementation of histogram for sparsely populated histograms.
More...
#include <HistogramCache.h>
List of all members.
|
Public Member Functions |
|
| HistogramCache (vector< double > &lo, vector< double > &hi, vector< double > &wid) |
| | Constructor.
|
|
| HistogramCache (HistogramCache &p) |
| | Copy constructor.
|
|
| ~HistogramCache () |
| | Destructor.
|
|
void | addValue (vector< double > &z, double value=1) |
| | Add a vector to the cache.
|
|
double | getValue (vector< unsigned short > &indx) |
| | Get the value for a given index.
|
|
double | getValue (vector< double > &z) |
| | Get the value for a given vector.
|
|
bool | addToExistingValue (vector< double > &z, double value=1) |
| | Add to an existing value with given vector.
|
|
int | getNumber (void) |
| | Number of elements.
|
|
void | printList () |
| | For debugging.
|
|
| mmapHK::iterator | Reset () |
| | Iterator access.
|
|
mmapHK::iterator | Next () |
| | Advance the iteraator.
|
|
mmapHK::iterator | Current () |
| | Return the current value (no advance or reset).
|
Static Public Attributes |
|
static int | numBuckets |
| | Number of buckets per cache node.
|
Friends |
|
class | boost::serialization::access |
Detailed Description
Hash implementation of histogram for sparsely populated histograms.
Member Function Documentation
| mmapHK::iterator HistogramCache::Reset |
( |
void |
|
) |
[inline] |
Iterator access.
Reset the iterator
The documentation for this class was generated from the following file: