HackAnalysis
2
|
#include <BinnedFn.h>
Public Member Functions | |
BinnedFn1D (const std::vector< TX > &binedges) | |
Constructor taking a list of bin edges. | |
BinnedFn1D (const std::vector< TX > &binedges, const std::vector< T > &binvalues) | |
Constructor taking lists of bin edges and values. | |
size_t | num_bins () const |
Get the number of bins. | |
size_t | get_index (const TX &x) const |
Get the bin index enclosing position x. | |
const T & | get_at_index (size_t ix) const |
Get the value in bin number ix. | |
const T & | get_at (const TX &x) const |
Get the value in the bin at position x. | |
void | set_at_index (size_t ix, const T &val) |
Set the value in bin number ix. | |
void | set_at (const TX &x, const T &val) |
Set the value in the bin at position x. | |
void | reset () |
Clear the bin contents (but leave the binning intact) | |
void | check () const |
Check consistency of the edges and values vectors. | |
Public Attributes | |
Binning1D< TX > | binning |
The list of bin edges. | |
std::vector< T > | values |
The list of values. | |
Binned container of Ts in 1D