SourceXtractorPlusPlus  0.8
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 
30 namespace SourceXtractor {
31 
33 
34 public:
35  BackgroundHistogram(const double& mean, const double& sigm, const size_t& ndata);
36  virtual ~BackgroundHistogram();
37 
38  //void fillInData(const PIXTYPE* cellData, const size_t ndata);
39  void addDatum(const PIXTYPE& pixVal);
40 
41  void getBackGuessMod(PIXTYPE& bckVal, PIXTYPE& sigmaVal);
42  void getBackGuess(PIXTYPE& bckVal, PIXTYPE& sigmaVal);
43 
44  double itsMean=0.0;
45  double itsSigma=0.0;
46 
47 private:
48  size_t itsStatNData=0;
49 
50  float itsQzero = 0.0;
51  float itsQscale = 0.0;
52  float itsCste = 0.0;
53 
54  int* itsHisto=NULL;
55  size_t itsNLevels=0;
56 };
57 
58 } // end of namespace SourceXtractor
59 
60 
61 #endif /* BACKGROUNDHISTOGRAM_H */
62 
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)