hops
Functions
BinarySearchAcceptanceRateTuner.cpp File Reference
#include <hops/MarkovChain/MarkovChainAttribute.hpp>
#include <hops/MarkovChain/Tuning/BinarySearchAcceptanceRateTuner.hpp>
#include <cmath>
Include dependency graph for BinarySearchAcceptanceRateTuner.cpp:

Functions

Case currentCase (double measuredAcceptanceRate, const hops::BinarySearchAcceptanceRateTuner::param_type &parameters)
 
double measureAcceptanceRate (double stepSize, hops::MarkovChain *markovChain, hops::RandomNumberGenerator randomNumberGenerator, const hops::BinarySearchAcceptanceRateTuner::param_type &parameters)
 measures the acceptance rate of a configured step size More...
 
double nextStepSizeToTry (double currentStepSize, double measuredAcceptanceRate, const hops::BinarySearchAcceptanceRateTuner::param_type &parameters)
 determines which step size to try next based on the measured acceptance rate of the current step size More...
 

Function Documentation

◆ currentCase()

Case currentCase ( double  measuredAcceptanceRate,
const hops::BinarySearchAcceptanceRateTuner::param_type parameters 
)

◆ measureAcceptanceRate()

double measureAcceptanceRate ( double  stepSize,
hops::MarkovChain markovChain,
hops::RandomNumberGenerator  randomNumberGenerator,
const hops::BinarySearchAcceptanceRateTuner::param_type parameters 
)

measures the acceptance rate of a configured step size

Parameters
stepSize
markovChain
Returns

◆ nextStepSizeToTry()

double nextStepSizeToTry ( double  currentStepSize,
double  measuredAcceptanceRate,
const hops::BinarySearchAcceptanceRateTuner::param_type parameters 
)

determines which step size to try next based on the measured acceptance rate of the current step size

Parameters
currentStepSize
measuredAcceptanceRate
Returns