SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BackgroundHistogram.h
Go to the documentation of this file.
1 
17 /*
18  * Created on Jan 05, 2015
19  * @author: mkuemmel@usm.lmu.de
20  *
21  * Date: $Date$
22  * Revision: $Revision$
23  * Author: $Author$
24  */
25 #ifndef BACKGROUNDHISTOGRAM_H
26 #define BACKGROUNDHISTOGRAM_H
27 
28 #include <cstddef>
29 #include <vector>
31 
32 namespace SourceXtractor {
33 
35 
36 public:
37  BackgroundHistogram(const double& mean, const double& sigm, const size_t& ndata);
38  virtual ~BackgroundHistogram();
39 
40  //void fillInData(const PIXTYPE* cellData, const size_t ndata);
41  void addDatum(const PIXTYPE& pixVal);
42 
43  void getBackGuessMod(PIXTYPE& bckVal, PIXTYPE& sigmaVal);
44  void getBackGuess(PIXTYPE& bckVal, PIXTYPE& sigmaVal);
45 
46  double itsMean=0.0;
47  double itsSigma=0.0;
48 
49 private:
50  size_t itsStatNData=0;
51 
52  float itsQzero = 0.0;
53  float itsQscale = 0.0;
54  float itsCste = 0.0;
55 
56  int* itsHisto=NULL;
57  size_t itsNLevels=0;
58 };
59 
60 } // end of namespace SourceXtractor
61 
62 
63 #endif /* BACKGROUNDHISTOGRAM_H */
64 
BackgroundHistogram(const double &mean, const double &sigm, const size_t &ndata)
void getBackGuessMod(PIXTYPE &bckVal, PIXTYPE &sigmaVal)
void getBackGuess(PIXTYPE &bckVal, PIXTYPE &sigmaVal)
void addDatum(const PIXTYPE &pixVal)