Histogram computation class. More...
#include <itpp/stat/histogram.h>
Public Member Functions | |
Histogram (Num_T from=Num_T(0), Num_T to=Num_T(99), int n_bins=100) | |
~Histogram () | |
Default destructor. More... | |
void | setup (Num_T from, Num_T to, int n_bins) |
Histogram setup. More... | |
void | update (Num_T value) |
Histogram update. More... | |
void | update (Vec< Num_T > values) |
Histogram update. More... | |
void | update (Mat< Num_T > values) |
Histogram update. More... | |
void | reset () |
Bins reset, so accumulation can be restarted. More... | |
int | get_bin (int ix) const |
Access to single bin counter. More... | |
ivec | get_bins () const |
Access to histogram as a vector. More... | |
Vec< Num_T > | get_bin_centers () const |
Access to bin center values (all bins) More... | |
Num_T | get_bin_center (int ix) const |
Access to bin center (single bin) More... | |
Vec< Num_T > | get_bin_lefts () const |
Access to left boundary of bin intervals (all bins) More... | |
Num_T | get_bin_left (int ix) const |
Access to left boundary of single bin. More... | |
Vec< Num_T > | get_bin_rights () const |
Access to right boundary of bin intervals (all bins) More... | |
Num_T | get_bin_right (int ix) const |
Access to right boundary of single bin. More... | |
vec | get_pdf () const |
Experimental Probability Density Function (PDF) computation. More... | |
vec | get_cdf () const |
Experimental Cumulative Density Function (CDF) computation. More... | |
int | bins_num () const |
Current number of bins. More... | |
int | trials_num () const |
Current trials counter. More... | |
Histogram computation class.
The Histogram class counts the number of observations of arbitrary numerical types that fall into specified bins. Centers of the leftmost and rightmost bin along with a total number of bins are passed to a histogram object as constructor parameters. Histogram counters are updated when calling update() method. It is possible to access bin counters and bin interval parameters for all bins at once or separately for each bin.
Example:
Definition at line 75 of file histogram.h.
|
inline |
Default destructor.
Definition at line 82 of file histogram.h.
|
inline |
Bins reset, so accumulation can be restarted.
Definition at line 95 of file histogram.h.
Referenced by itpp::EXIT::extrinsic_mutual_info().
|
inline |
Access to single bin counter.
Definition at line 97 of file histogram.h.
|
inline |
Access to histogram as a vector.
Definition at line 99 of file histogram.h.
|
inline |
Access to bin center values (all bins)
Definition at line 101 of file histogram.h.
|
inline |
Access to bin center (single bin)
Definition at line 103 of file histogram.h.
|
inline |
Access to left boundary of bin intervals (all bins)
Definition at line 105 of file histogram.h.
|
inline |
Access to left boundary of single bin.
Definition at line 107 of file histogram.h.
|
inline |
Access to right boundary of bin intervals (all bins)
Definition at line 109 of file histogram.h.
|
inline |
Access to right boundary of single bin.
Definition at line 111 of file histogram.h.
|
inline |
Current number of bins.
Definition at line 119 of file histogram.h.
|
inline |
Current trials counter.
Definition at line 121 of file histogram.h.
Generated on Tue Aug 17 2021 10:59:15 for IT++ by Doxygen 1.9.4