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

Classes

class  LogLikeWrapper
 Class to connect multinest log-likelihood function and ScannerBit likelihood function. More...
 

Typedefs

typedef Gambit::Scanner::like_ptr scanPtr
 Typedef for the ScannerBit pointer to the external loglikelihood function. More...
 

Functions

double callback_loglike (double *, int, int, void *)
 Plain-vanilla C-functions to pass to Multinest for the callbacks. More...
 
void callback_dumper (int, int, int, double *, double *, double *, double, double, double, void *)
 

Variables

LogLikeWrapperglobal_loglike_object
 Global pointer to loglikelihood wrapper object, for use in the MultiNest callback functions. More...
 

Typedef Documentation

◆ scanPtr

Typedef for the ScannerBit pointer to the external loglikelihood function.

Definition at line 50 of file multinest.hpp.

Function Documentation

◆ callback_dumper()

void Gambit::MultiNest::callback_dumper ( int  nSamples,
int  nlive,
int  nPar,
double physLive,
double posterior,
double paramConstr,
double  maxLogLike,
double  logZ,
double  logZerr,
void  
)

Definition at line 195 of file multinest.cpp.

References global_loglike_object.

Referenced by scanner_plugin().

199  {
201  dumper(nSamples, nlive, nPar, physLive, posterior, paramConstr,
202  maxLogLike, logZ, logZerr);
203  }
LogLikeWrapper * global_loglike_object
Global pointer to loglikelihood wrapper object, for use in the MultiNest callback functions...
Definition: multinest.cpp:37
Here is the caller graph for this function:

◆ callback_loglike()

double Gambit::MultiNest::callback_loglike ( double Cube,
int  ndim,
int  npars,
void  
)

Plain-vanilla C-functions to pass to Multinest for the callbacks.

Plain-vanilla functions to pass to Multinest for the callback.

Definition at line 187 of file multinest.cpp.

References global_loglike_object, and Gambit::MultiNest::LogLikeWrapper::LogLike().

Referenced by scanner_plugin().

188  {
189  // Call global interface to ScannerBit loglikelihood function
190  // Could also pass this object in via context pointer, but that
191  // involves some casting and could risk a segfault.
192  return global_loglike_object->LogLike(Cube, ndim, npars);
193  }
double LogLike(double *, int, int)
Main interface function from MultiNest to ScannerBit-supplied loglikelihood function.
Definition: multinest.cpp:229
LogLikeWrapper * global_loglike_object
Global pointer to loglikelihood wrapper object, for use in the MultiNest callback functions...
Definition: multinest.cpp:37
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ global_loglike_object

LogLikeWrapper * Gambit::MultiNest::global_loglike_object

Global pointer to loglikelihood wrapper object, for use in the MultiNest callback functions.

Definition at line 37 of file multinest.cpp.

Referenced by callback_dumper(), callback_loglike(), and scanner_plugin().