LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
#include <Histogram.h>
Public Member Functions | |
Histogram (double binSize, double minValue, double maxValue) | |
~Histogram () | |
void | add (double value, const T &ref) |
double | findPeak (double minVal, double maxVal) const |
bool | hasSinglePeak (double minVal, double maxVal) const |
double | findValley (double minVal, double maxVal) const |
double | findFirstValueAfter (double start) const |
double | findFirstValleyAfter (double val1, bool hasPoissonNoise=false) const |
double | findFirstValleyBefore (double val1, bool hasPoissonNoise=false) const |
double | findFirstPeakAfter (double val1, bool hasPoissonNoise=false) const |
double | findFirstPeakBefore (double val1, bool hasPoissonNoise=false) const |
int | getTotalCountBefore (double val1) const |
int | getTotalCountAfter (double val1) const |
int | operator[] (double value) const |
double | findThresh (double minVal, double maxVal) const |
std::vector< T > | getRefsInRange (double min, double max) const |
std::vector< double > | getValuesInRange (double min, double max) const |
int | getRefinedPeakCount (double *peak) const |
int | getRefinedValleyCount (double *valley) const |
void | print (std::ostream &fout, double val1=-1.e10, double val2=1.e10) const |
Private Member Functions | |
int | getCount (int i) const |
int | index (double value) const |
double | value (int i) const |
Private Attributes | |
double | _binSize |
double | _minValue |
double | _maxValue |
std::vector< std::vector< T > > | _refs |
std::vector< std::vector < double > > | _values |
Definition at line 13 of file Histogram.h.
lsst::meas::algorithms::shapelet::Histogram< T >::Histogram | ( | double | binSize, |
double | minValue, | ||
double | maxValue | ||
) |
Definition at line 38 of file Histogram.cc.
|
inline |
Definition at line 18 of file Histogram.h.
void lsst::meas::algorithms::shapelet::Histogram< T >::add | ( | double | value, |
const T & | ref | ||
) |
Definition at line 61 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findFirstPeakAfter | ( | double | val1, |
bool | hasPoissonNoise = false |
||
) | const |
Definition at line 204 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findFirstPeakBefore | ( | double | val1, |
bool | hasPoissonNoise = false |
||
) | const |
Definition at line 226 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findFirstValleyAfter | ( | double | val1, |
bool | hasPoissonNoise = false |
||
) | const |
Definition at line 140 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findFirstValleyBefore | ( | double | val1, |
bool | hasPoissonNoise = false |
||
) | const |
Definition at line 167 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findFirstValueAfter | ( | double | start | ) | const |
Definition at line 194 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findPeak | ( | double | minVal, |
double | maxVal | ||
) | const |
Definition at line 76 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findThresh | ( | double | minVal, |
double | maxVal | ||
) | const |
Definition at line 347 of file Histogram.cc.
double lsst::meas::algorithms::shapelet::Histogram< T >::findValley | ( | double | minVal, |
double | maxVal | ||
) | const |
Definition at line 113 of file Histogram.cc.
|
private |
Definition at line 68 of file Histogram.cc.
int lsst::meas::algorithms::shapelet::Histogram< T >::getRefinedPeakCount | ( | double * | peak | ) | const |
Definition at line 271 of file Histogram.cc.
int lsst::meas::algorithms::shapelet::Histogram< T >::getRefinedValleyCount | ( | double * | valley | ) | const |
Definition at line 302 of file Histogram.cc.
std::vector< T > lsst::meas::algorithms::shapelet::Histogram< T >::getRefsInRange | ( | double | min, |
double | max | ||
) | const |
Definition at line 448 of file Histogram.cc.
int lsst::meas::algorithms::shapelet::Histogram< T >::getTotalCountAfter | ( | double | val1 | ) | const |
Definition at line 260 of file Histogram.cc.
int lsst::meas::algorithms::shapelet::Histogram< T >::getTotalCountBefore | ( | double | val1 | ) | const |
Definition at line 250 of file Histogram.cc.
std::vector< double > lsst::meas::algorithms::shapelet::Histogram< T >::getValuesInRange | ( | double | min, |
double | max | ||
) | const |
Definition at line 482 of file Histogram.cc.
bool lsst::meas::algorithms::shapelet::Histogram< T >::hasSinglePeak | ( | double | minVal, |
double | maxVal | ||
) | const |
Definition at line 96 of file Histogram.cc.
|
private |
Definition at line 503 of file Histogram.cc.
int lsst::meas::algorithms::shapelet::Histogram< T >::operator[] | ( | double | value | ) | const |
Definition at line 339 of file Histogram.cc.
void lsst::meas::algorithms::shapelet::Histogram< T >::print | ( | std::ostream & | fout, |
double | val1 = -1.e10 , |
||
double | val2 = 1.e10 |
||
) | const |
Definition at line 517 of file Histogram.cc.
|
private |
Definition at line 510 of file Histogram.cc.
|
private |
Definition at line 45 of file Histogram.h.
|
private |
Definition at line 45 of file Histogram.h.
|
private |
Definition at line 45 of file Histogram.h.
|
private |
Definition at line 46 of file Histogram.h.
|
private |
Definition at line 47 of file Histogram.h.