|
WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
|
#include <Binning.h>
Public Member Functions | |
| Binning (int nbins, double minval, double maxval) | |
| Binning () | |
| void | set (int nbins, double minval, double maxval) |
| int | nbins () const |
| double | min () const |
| double | max () const |
| double | span () const |
| Return the max-min. More... | |
| std::pair< double, double > | range () const |
| std::pair< int, int > | irange () const |
| double | binsize () const |
| int | bin (double val) const |
| double | center (int ind) const |
| int | edge_index (double val) const |
| double | edge (int ind) const |
| bool | inside (double val) const |
| bool | inbounds (int bin) const |
| Return true if bin is in bounds. More... | |
| std::pair< int, int > | sample_bin_range (double minval, double maxval) const |
A binning is a uniform discretization of a linear space.
This class largely provides methods that give semantic labels to various calculations related to a binned region.
|
inline |
Create a binning
| nbins | gives the number of uniform, discrete separation between bounds. |
| minval | gives the lower bound of the linear space (low edge of bin 0) |
| maxval | gives the upper bound of the linear space (high edge of bin nbins-1) |
Definition at line 26 of file Binning.h.

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |