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.
voidsetParameters(const std::unordered_map< std::string, double > & parameterMap)
Do the prior transformation and populate the parameter map.
doublemain(std::unordered_map< std::string, double > & in)
Evaluate total likelihood function.
doublepurposeModifier(double lnlike)
Use this to modify the total likelihood function before passing it to the scanner.
voidset_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 2023-06-26 at 21:36:50 +0000