Go to the documentation of this file.
14 #ifndef GeneralBinFinderInR_H
15 #define GeneralBinFinderInR_H
87 #ifndef GeneralBinFinderInZ_H
88 #define GeneralBinFinderInZ_H
146 for (
int i =
bin - 1;; --
i) {
160 for (
int i =
bin + 1;; ++
i) {
180 static double pi() {
return 3.141592653589793238; }
std::vector< T > theBorders
std::vector< T > theBorders
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z
int binIndex(T R) const override
int binIndex(int i) const override
returns an index in the valid range
T binPosition(int ind) const override
the middle of the bin.
T binPosition(int ind) const override
The middle of the bin.
int binIndex(int i) const override
Returns an index in the valid range.
GeneralBinFinderInR(std::vector< T > &borders)
GeneralBinFinderInZ(std::vector< T > &borders)