MINT2
HyperBinningMakerLikelihood.cpp
Go to the documentation of this file.
2 
3 
4 
5 
7  HyperBinningMaker(binningRange, data)
8 {
9  WELCOME_LOG << "Good day from the HyperBinningMakerLikelihood() Constructor"<<std::endl;
10 }
11 
13 
14  int dimension = _binningDimensions.size();
15 
16  int nBins = 0;
17  int unchanged = 0;
18 
19  while (likelihoodSplitAll() != 0){
20  if (nBins == getNumBins()) unchanged++;
21  else unchanged = 0;
22  if (unchanged >= 2.0*dimension) break;
23  nBins = getNumBins();
24  if (s_printBinning == true) INFO_LOG << "There is now a total of " << nBins << " bins"<<std::endl;
25  }
26 
27  if (s_printBinning == true) INFO_LOG << "likelihood binning algorithm complete "<<std::endl;
28 
29 }
30 
32  GOODBYE_LOG << "Goodbye from the HyperBinningMakerLikelihood() Constructor"<<std::endl;
33 }
#define INFO_LOG
static bool s_printBinning
#define GOODBYE_LOG
#define WELCOME_LOG
std::vector< int > _binningDimensions
HyperBinningMakerLikelihood(const HyperCuboid &binningRange, const HyperPointSet &data)