A class to normalize and quantizize input data to a given histogram range with its given number of bins. More...
#include <mia/core/histogram.hh>
Public Types | |
| typedef T | value_type |
| typedef for generic programming More... | |
Public Member Functions | |
| size_t | index (T x) const |
| size_t | size () const |
| THistogramFeeder (T min, T max, size_t bins) | |
| T | value (size_t k) const |
A class to normalize and quantizize input data to a given histogram range with its given number of bins.
This class is used as a helpe class for simple histograms. The class is responsible for scaling and quantizising the input values to fit the histogram parameters.
| the | input data type to be fed into the instogram |
Definition at line 49 of file histogram.hh.
| typedef T THistogramFeeder< T >::value_type |
typedef for generic programming
Definition at line 52 of file histogram.hh.
| THistogramFeeder< T >::THistogramFeeder | ( | T | min, |
| T | max, | ||
| size_t | bins | ||
| ) |
Initialize the histogram feeder for a histogram with values in [min,max] with the given number of bins.
| min | |
| max | |
| bins |
Definition at line 234 of file histogram.hh.
|
inline |
Evaluate the target bin of an input value
| x | input value |
Definition at line 250 of file histogram.hh.
| size_t THistogramFeeder< T >::size | ( | ) | const |
Definition at line 244 of file histogram.hh.
| T THistogramFeeder< T >::value | ( | size_t | k | ) | const |
Evaluate the center value of a given bin in terms of the input data range
| k | bin index |
Definition at line 261 of file histogram.hh.