xerus
a general purpose tensor library
|
A logarithmic histogram, i.e. the size of all buckets is given by a constant factor [x - x*base) More...
#include <histogram.h>
Public Member Functions | |
LogHistogram (const double _base) | |
void | add (double _value, size_t _count=1) |
void | dump_to_file (const std::string &_fileName) const |
LogHistogram & | operator+= (const LogHistogram &_other) |
Static Public Member Functions | |
static LogHistogram | read_from_file (const std::string &_fileName) |
Public Attributes | |
double | base |
std::map< int, size_t > | buckets |
size_t | totalCount |
A logarithmic histogram, i.e. the size of all buckets is given by a constant factor [x - x*base)
Definition at line 37 of file histogram.h.
|
explicit |
Definition at line 31 of file histogram.cpp.
void xerus::misc::LogHistogram::add | ( | double | _value, |
size_t | _count = 1 |
||
) |
Definition at line 42 of file histogram.cpp.
void xerus::misc::LogHistogram::dump_to_file | ( | const std::string & | _fileName | ) | const |
Definition at line 80 of file histogram.cpp.
LogHistogram & xerus::misc::LogHistogram::operator+= | ( | const LogHistogram & | _other | ) |
Definition at line 33 of file histogram.cpp.
|
static |
Definition at line 49 of file histogram.cpp.
double xerus::misc::LogHistogram::base |
Definition at line 39 of file histogram.h.
std::map<int, size_t> xerus::misc::LogHistogram::buckets |
Definition at line 40 of file histogram.h.
size_t xerus::misc::LogHistogram::totalCount |
Definition at line 41 of file histogram.h.