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