gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
Gambit::GreAT Namespace Reference

Classes

struct  greatScanData
 Structure for passing likelihood and printer data through GreAT to the objective function. More...
 

Functions

double LogLikelihoodFunction (TGreatPoint &point)
 Function to be minimised by GreAT. More...
 

Variables

greatScanData data
 

Function Documentation

◆ LogLikelihoodFunction()

double Gambit::GreAT::LogLikelihoodFunction ( TGreatPoint &  point)

Function to be minimised by GreAT.

Definition at line 202 of file great.cpp.

References data, Gambit::GreAT::greatScanData::likelihood_function, and Gambit::GreAT::greatScanData::min_logLike.

Referenced by scanner_plugin().

203  {
204  // check if point is within the unit cube
205  std::vector<double> parameter_vector = point.GetPoint();
206 
207  bool outside = false;
208  for (unsigned int i=0;i<parameter_vector.size();i++)
209  {
210  if (parameter_vector[i]<0 || parameter_vector[i]>1)
211  {
212  outside = true;
213  }
214  }
215 
216  if (outside)
217  {
218  // at least one dimension is outside the unit cube so return -1e100 for LogLike
219  return GreAT::data.min_logLike;
220  }
221  else
222  {
223  point.SetID(GreAT::data.likelihood_function->getNextPtID()); // Need to use the *next* PtID because PtID will not move on until the likelihood function is called.
224  return GreAT::data.likelihood_function(parameter_vector);
225  }
226  }
greatScanData data
Definition: great.cpp:38
Scanner::like_ptr likelihood_function
Definition: great.hpp:34
Here is the caller graph for this function:

Variable Documentation

◆ data