My Project
|
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 53 of file histogram.hh.
|
inline |
Initialize the histogram feeder for a histogram with values in [min,max] with the given number of bins.
min | |
max | |
bins |
Definition at line 237 of file histogram.hh.
|
inline |
Evaluate the target bin of an input value
x | input value |
Definition at line 253 of file histogram.hh.
|
inline |
Definition at line 247 of file histogram.hh.
|
inline |
Evaluate the center value of a given bin in terms of the input data range
k | bin index |
Definition at line 267 of file histogram.hh.