1 #ifndef MeasAlgoShapeletHistogram_H
2 #define MeasAlgoShapeletHistogram_H
17 Histogram(
double binSize,
double minValue,
double maxValue);
21 double findPeak(
double minVal,
double maxVal)
const;
23 double findValley(
double minVal,
double maxVal)
const;
32 double findThresh(
double minVal,
double maxVal)
const;
37 void print(std::ostream& fout,
double val1=-1.e10,
double val2=1.e10)
const;
43 double value(
int i)
const;
46 std::vector<std::vector<T> >
_refs;
47 std::vector<std::vector<double> >
_values;
int getRefinedPeakCount(double *peak) const
bool hasSinglePeak(double minVal, double maxVal) const
double findFirstPeakBefore(double val1, bool hasPoissonNoise=false) const
int operator[](double value) const
int getTotalCountBefore(double val1) const
double findFirstValleyAfter(double val1, bool hasPoissonNoise=false) const
std::vector< std::vector< double > > _values
double findFirstValleyBefore(double val1, bool hasPoissonNoise=false) const
Histogram(double binSize, double minValue, double maxValue)
double findPeak(double minVal, double maxVal) const
double findFirstPeakAfter(double val1, bool hasPoissonNoise=false) const
double value(int i) const
std::vector< T > getRefsInRange(double min, double max) const
double findValley(double minVal, double maxVal) const
void print(std::ostream &fout, double val1=-1.e10, double val2=1.e10) const
double findFirstValueAfter(double start) const
int getTotalCountAfter(double val1) const
int getRefinedValleyCount(double *valley) const
int index(double value) const
int getCount(int i) const
std::vector< double > getValuesInRange(double min, double max) const
void add(double value, const T &ref)
double findThresh(double minVal, double maxVal) const
std::vector< std::vector< T > > _refs