#include <ClusterizingHistogram.h>
Public Member Functions | |
int | bin (float x) const |
int | bin (double x) const |
float | bin_pos (int i) const |
std::vector< float > | clusterize (float resolution) |
ClusterizingHistogram (int nb, float xmi, float xma) | |
void | dump () const |
void | dump (int i1, int i2) const |
void | dump (float x1, float x2) const |
void | dump (double x1, double x2) const |
void | dump (float x1, double x2) const |
void | dump (double x1, float x2) const |
int | entries () const |
void | fill (float x) |
float | max_x () const |
float | min_x () const |
int | nbins () const |
int | overflows () const |
void | reset () |
int | underflows () const |
~ClusterizingHistogram () | |
Private Member Functions | |
ClusterizingHistogram () | |
Private Attributes | |
int * | bin_entries |
float * | bin_means |
float | binsiz |
int | my_entries |
int | my_nbins |
int | my_overflows |
int | my_underflows |
float | xmax |
float | xmin |
A very simple 1D equidistant bin histogram that has the ability to clusterize it's contents. The bin entries are averaged in X, giving more accurate indication of where the bin contents are than the center of the bin.
Definition at line 13 of file ClusterizingHistogram.h.
ClusterizingHistogram::ClusterizingHistogram | ( | int | nb, |
float | xmi, | ||
float | xma | ||
) |
Definition at line 6 of file ClusterizingHistogram.cc.
References bin_entries, bin_means, binsiz, mps_fire::i, my_nbins, xmax, and xmin.
ClusterizingHistogram::~ClusterizingHistogram | ( | ) |
|
inlineprivate |
Definition at line 40 of file ClusterizingHistogram.h.
int ClusterizingHistogram::bin | ( | float | x | ) | const |
Definition at line 18 of file ClusterizingHistogram.cc.
References binsiz, createfilelist::int, my_nbins, xmax, and xmin.
Referenced by bin_pos(), dump(), and fill().
int ClusterizingHistogram::bin | ( | double | x | ) | const |
Definition at line 23 of file ClusterizingHistogram.cc.
References binsiz, createfilelist::int, my_nbins, xmax, and xmin.
|
inline |
Definition at line 25 of file ClusterizingHistogram.h.
References bin(), bin_entries, bin_means, clusterize(), dump(), mps_fire::i, reset(), and fftjetproducer_cfi::resolution.
Referenced by clusterize(), and dump().
vector< float > ClusterizingHistogram::clusterize | ( | float | resolution | ) |
Definition at line 42 of file ClusterizingHistogram.cc.
References bin_entries, bin_means, bin_pos(), mps_fire::i, my_nbins, and xmin.
Referenced by bin_pos(), MagGeoBuilderFromDDD::bRod::bRod(), MagGeoBuilderFromDDD::bSector::bSector(), MagGeoBuilderFromDDD::build(), and MagGeoBuilderFromDDD::eSector::eSector().
void ClusterizingHistogram::dump | ( | void | ) | const |
Definition at line 71 of file ClusterizingHistogram.cc.
References my_nbins.
Referenced by bin_pos(), and dump().
void ClusterizingHistogram::dump | ( | int | i1, |
int | i2 | ||
) | const |
Definition at line 73 of file ClusterizingHistogram.cc.
References bin_entries, bin_pos(), gather_cfg::cout, mps_fire::i, hpstanc_transforms::max, min(), my_entries, my_nbins, my_overflows, and my_underflows.
void ClusterizingHistogram::dump | ( | float | x1, |
float | x2 | ||
) | const |
Definition at line 83 of file ClusterizingHistogram.cc.
void ClusterizingHistogram::dump | ( | double | x1, |
double | x2 | ||
) | const |
Definition at line 84 of file ClusterizingHistogram.cc.
void ClusterizingHistogram::dump | ( | float | x1, |
double | x2 | ||
) | const |
Definition at line 85 of file ClusterizingHistogram.cc.
void ClusterizingHistogram::dump | ( | double | x1, |
float | x2 | ||
) | const |
Definition at line 86 of file ClusterizingHistogram.cc.
|
inline |
void ClusterizingHistogram::fill | ( | float | x | ) |
Definition at line 29 of file ClusterizingHistogram.cc.
References bin(), bin_entries, bin_means, binsiz, createfilelist::int, my_entries, my_nbins, my_overflows, my_underflows, x, xmax, and xmin.
Referenced by MagGeoBuilderFromDDD::bRod::bRod(), MagGeoBuilderFromDDD::bSector::bSector(), MagGeoBuilderFromDDD::build(), and MagGeoBuilderFromDDD::eSector::eSector().
|
inline |
|
inline |
|
inline |
|
inline |
void ClusterizingHistogram::reset | ( | void | ) |
Definition at line 88 of file ClusterizingHistogram.cc.
References bin_entries, bin_means, mps_fire::i, my_entries, my_nbins, my_overflows, and my_underflows.
Referenced by bin_pos().
|
inline |
|
private |
Definition at line 47 of file ClusterizingHistogram.h.
Referenced by bin_pos(), clusterize(), ClusterizingHistogram(), dump(), fill(), reset(), and ~ClusterizingHistogram().
|
private |
Definition at line 48 of file ClusterizingHistogram.h.
Referenced by bin_pos(), clusterize(), ClusterizingHistogram(), fill(), reset(), and ~ClusterizingHistogram().
|
private |
Definition at line 49 of file ClusterizingHistogram.h.
Referenced by bin(), ClusterizingHistogram(), and fill().
|
private |
|
private |
Definition at line 41 of file ClusterizingHistogram.h.
Referenced by bin(), clusterize(), ClusterizingHistogram(), dump(), fill(), nbins(), and reset().
|
private |
Definition at line 46 of file ClusterizingHistogram.h.
Referenced by dump(), fill(), overflows(), and reset().
|
private |
Definition at line 45 of file ClusterizingHistogram.h.
Referenced by dump(), fill(), reset(), and underflows().
|
private |
Definition at line 43 of file ClusterizingHistogram.h.
Referenced by svgfig.XAxis::__repr__(), bin(), ClusterizingHistogram(), fill(), and max_x().
|
private |
Definition at line 42 of file ClusterizingHistogram.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), bin(), clusterize(), ClusterizingHistogram(), fill(), min_x(), and svgfig.Axes::SVG().