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
T binPosition(int ind) const override
the middle of the bin.
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z
GeneralBinFinderInR(std::vector< T > &borders)
std::vector< T > theBorders
T binPosition(int ind) const override
The middle of the bin.
int binIndex(int i) const override
returns an index in the valid range
GeneralBinFinderInZ(std::vector< T > &borders)
int binIndex(T R) const override
int binIndex(int i) const override
Returns an index in the valid range.