YODA::BinEstimator Struct Reference
Inheritance diagram for YODA::BinEstimator:
Detailed DescriptionBin estimator. Base class for guessing the right bin index for a given value. The better the guess, the less time spent looking. Definition at line 14 of file BinEstimators.h. Constructor & Destructor Documentation◆ ~BinEstimator()
Member Function Documentation◆ estindex()
Return offset bin index estimate, with 0 = underflow and Nbins+1 = overflow. Definition at line 20 of file BinEstimators.h. 20 {
21 const int i = _est(x);
22 if (i < 0) return 0;
23 const size_t i2 = (size_t) i;
24 if (i2 >= _N) return _N+1;
25 return i2 + 1;
26 }
Referenced by operator()(). ◆ operator()()
Return offset bin index estimate, with 0 = underflow and Nbins+1 = overflow. Definition at line 29 of file BinEstimators.h. 29 {
31 }
size_t estindex(double x) const Return offset bin index estimate, with 0 = underflow and Nbins+1 = overflow. Definition BinEstimators.h:20 References estindex(). The documentation for this struct was generated from the following file:
Generated on Mon Oct 28 2024 13:47:24 for YODA - Yet more Objects for Data Analysis by 1.9.8 |