6 AnnealTemp = GetFromManager<double>(
fitMan->
raw()[
"General"][
"MCMC"][
"AnnealTemp"], -999, __FILE__ , __LINE__);
52 debugFile <<
"LLH after " <<
systematics[s]->GetName() <<
" " << llh << std::endl;
70 debugFile <<
" delta_cp: " << delta_cp_value <<
" delm23: " << delm23_value <<
" multicanonical_penalty: " << multicanonical_penalty << std::endl;
74 llh += multicanonical_penalty;
77 MACH3LOG_DEBUG(
"Multicanonical penalty: {}", multicanonical_penalty);
88 debugFile <<
"Rejecting based on boundary" << std::endl;
98 for (
size_t i = 0; i <
samples.size(); ++i)
104 for (
size_t i = 0; i <
samples.size(); ++i)
111 debugFile <<
"LLH after sample " << i <<
" " << llh << std::endl;
118 for (
size_t i = 0; i <
samples.size(); ++i)
124 debugFile <<
"LLH after REJECT sample " << i <<
" " << llh << std::endl;
137 double acc_prob = 0.0;
double logLProp
proposed likelihood
unsigned int step
current state
double accProb
current acceptance prob
std::string AlgorithmName
Name of fitting algorithm that is being used.
std::vector< double > sample_llh
store the llh breakdowns
std::vector< SampleHandlerInterface * > samples
Sample holder.
Manager * fitMan
The manager for configuration handling.
double logLCurr
current likelihood
std::vector< double > syst_llh
systematic llh breakdowns
std::vector< ParameterHandlerBase * > systematics
Systematic holder.
Base class for MCMC fitting algorithms.
std::unique_ptr< MulticanonicalMCMCHandler > multicanonicalHandler
multicanonical handler for umbrella sampling
void AcceptStep()
Accept a step.
bool out_of_bounds
Do we reject based on hitting boundaries in systs.
bool IsStepAccepted(const double acc_prob)
Is step accepted?
bool multicanonical
multi-canonical method toggle on/off
MR2T2(Manager *const FitManager)
Constructor.
void ProposeStep() final
Propose a step.
double AnnealTemp
simulated annealing temperature
double AcceptanceProbability() override
Step acceptance probability.
bool anneal
simulated annealing
void DoStep() override
The MCMC step proposal and acceptance.
The manager class is responsible for managing configurations and settings.
YAML::Node const & raw() const
Return config.
constexpr static const double _LARGE_LOGL_
Large Likelihood is used it parameter go out of physical boundary, this indicates in MCMC that such s...