class Gambit::Likelihood_Container
Class for collecting pointers to all the likelihood components, then running and combining them.
#include <likelihood_container.hpp>
Inherits from Gambit::Scanner::Function_Base< double(std::unordered_map< std::string, double > &)>
Public Functions
Name | |
---|---|
Likelihood_Container(const std::map< str, primary_model_functor * > & functorMap, DRes::DependencyResolver & dependencyResolver, IniParser::IniFile & iniFile, const str & purpose, Printers::BaseBasePrinter & printer) Constructor. | |
void | setParameters(const std::unordered_map< std::string, double > & parameterMap) Do the prior transformation and populate the parameter map. |
double | main(std::unordered_map< std::string, double > & in) Evaluate total likelihood function. |
double | purposeModifier(double lnlike) Use this to modify the total likelihood function before passing it to the scanner. |
void | set_scanID() Set the scanID. |
Public Functions Documentation
function Likelihood_Container
Likelihood_Container(
const std::map< str, primary_model_functor * > & functorMap,
DRes::DependencyResolver & dependencyResolver,
IniParser::IniFile & iniFile,
const str & purpose,
Printers::BaseBasePrinter & printer
)
Constructor.
function setParameters
void setParameters(
const std::unordered_map< std::string, double > & parameterMap
)
Do the prior transformation and populate the parameter map.
function main
double main(
std::unordered_map< std::string, double > & in
)
Evaluate total likelihood function.
function purposeModifier
double purposeModifier(
double lnlike
)
Use this to modify the total likelihood function before passing it to the scanner.
function set_scanID
void set_scanID()
Set the scanID.
Work out what the scanID should be and set it.
Updated on 2024-07-18 at 13:53:30 +0000