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

Classes

struct  arccosprior
 
class  BasePrior
 Abstract base class for priors. More...
 
class  Cauchy
 Multi-dimensional Cauchy prior. More...
 
class  CompositePrior
 Special "build-a-prior" class This is the class to use for setting simple 1D priors (from the library above) on individual parameters. More...
 
struct  cosprior
 
struct  cotprior
 
class  DoubleLogFlatJoin
 1D double log prior with flat bridge over zero. More...
 
class  Dummy
 
class  FixedPrior
 A fixed parameter. More...
 
struct  flatprior
 
class  Gaussian
 Multi-dimensional Gaussian prior. More...
 
class  LogNormal
 Multi-dimensional Log-Normal prior. More...
 
struct  logprior
 
class  MultiPriors
 A parameter that is fixed to a different parameter. More...
 
class  None
 
class  Plugin
 
class  RangePrior1D
 Template class for 1d priors which need only a "range" option in their constructor. More...
 
struct  sinprior
 
struct  tanprior
 

Functions

 LOAD_PRIOR (dummy, Dummy) LOAD_PRIOR(none
 
 LOAD_PRIOR (fixed_value, FixedPrior) LOAD_PRIOR(same_as
 
 LOAD_PRIOR (log, RangePrior1D< logprior >) LOAD_PRIOR(flat
 
RangePrior1D< flatprior > RangePrior1D< sinpriorLOAD_PRIOR (tan, RangePrior1D< tanprior >) LOAD_PRIOR(cot
 
std::vector< std::string > expand_dots (const std::vector< std::string > &param_names_in)
 

Variables

RangePrior1D< flatpriorLOAD_PRIOR (cos, RangePrior1D< cosprior >) LOAD_PRIOR(sin
 
 gambit_registry
 
reg_elem< create_prior_function > prior_creators
 

Function Documentation

◆ expand_dots()

std::vector<std::string> Gambit::Priors::expand_dots ( const std::vector< std::string > &  param_names_in)

Definition at line 59 of file composite.cpp.

References generate_raster_scan_settings::N.

Referenced by Gambit::Priors::CompositePrior::CompositePrior().

60  {
61  std::vector<std::string> param_names = param_names_in;
62 
63  for (int i = 0, end = param_names.size(); i < end; i++)
64  {
65  if (param_names[i].find("...") != std::string::npos)
66  {
67  auto p_it = param_names.begin() + i;
68  std::string::size_type pos = p_it->find("...");
69  std::string prefix = p_it->substr(0, pos) + "_";
70  std::stringstream ss(p_it->substr(pos+3));
71  int N = 0;
72  if (bool(ss >> N) && N >0)
73  {
74  p_it = param_names.erase(p_it);
75  std::vector<std::string> temps;
76 
77  for (int j = 0; j < N; j++)
78  {
79  std::stringstream ss;
80  ss << j;
81  temps.push_back(prefix + ss.str());
82  }
83 
84  param_names.insert(p_it, temps.begin(), temps.end());
85  i += N - 1;
86  }
87  }
88  }
89 
90  return param_names;
91  }
Here is the caller graph for this function:

◆ LOAD_PRIOR() [1/4]

Gambit::Priors::LOAD_PRIOR ( dummy  ,
Dummy   
)

◆ LOAD_PRIOR() [2/4]

Gambit::Priors::LOAD_PRIOR ( fixed_value  ,
FixedPrior   
)

◆ LOAD_PRIOR() [3/4]

Gambit::Priors::LOAD_PRIOR ( log  ,
RangePrior1D< logprior  
)

◆ LOAD_PRIOR() [4/4]

RangePrior1D<flatprior> RangePrior1D<sinprior> Gambit::Priors::LOAD_PRIOR ( tan  ,
RangePrior1D< tanprior  
)

Variable Documentation

◆ gambit_registry

Gambit::Priors::gambit_registry
Initial value:
{
typedef BasePrior* create_prior_function(const std::vector<std::string> &, const Options &)

Definition at line 41 of file priors.hpp.

◆ LOAD_PRIOR

◆ prior_creators

reg_elem<create_prior_function> Gambit::Priors::prior_creators