hops
Classes | Public Member Functions | Static Public Member Functions | List of all members
hops::BinarySearchAcceptanceRateTuner Class Reference

Deprecated as there are issues due to the uncertainty in estimating acceptance rates. More...

#include <BinarySearchAcceptanceRateTuner.hpp>

Collaboration diagram for hops::BinarySearchAcceptanceRateTuner:
Collaboration graph

Classes

struct  param_type
 

Public Member Functions

 BinarySearchAcceptanceRateTuner ()=delete
 

Static Public Member Functions

static bool tune (MarkovChain *markovChain, RandomNumberGenerator &randomNumberGenerator, const param_type &parameters)
 tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate. More...
 
static bool tune (double &stepSize, double &AcceptanceRate, MarkovChain *markovChain, RandomNumberGenerator &randomNumberGenerator, const param_type &parameters)
 tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate. More...
 
static bool tune (std::vector< std::shared_ptr< MarkovChain >> &markovChain, std::vector< RandomNumberGenerator > &randomNumberGenerator, const param_type &parameters)
 tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate. More...
 
static bool tune (double &stepSize, double &acceptanceRate, std::vector< std::shared_ptr< MarkovChain >> &markovChain, std::vector< RandomNumberGenerator > &randomNumberGenerator, const param_type &parameters)
 tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate. More...
 

Detailed Description

Deprecated as there are issues due to the uncertainty in estimating acceptance rates.

Deprecated:
Binary search does not work well for acceptance rate tuning, because the acceptance rate is uncertain.

Constructor & Destructor Documentation

◆ BinarySearchAcceptanceRateTuner()

hops::BinarySearchAcceptanceRateTuner::BinarySearchAcceptanceRateTuner ( )
delete

Member Function Documentation

◆ tune() [1/4]

bool hops::BinarySearchAcceptanceRateTuner::tune ( double &  stepSize,
double &  AcceptanceRate,
MarkovChain markovChain,
RandomNumberGenerator randomNumberGenerator,
const param_type parameters 
)
static

tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate.

Clears Markov chain history.

Parameters
markovChain
parameters
Returns
true if markov chain is tuned

◆ tune() [2/4]

static bool hops::BinarySearchAcceptanceRateTuner::tune ( double &  stepSize,
double &  acceptanceRate,
std::vector< std::shared_ptr< MarkovChain >> &  markovChain,
std::vector< RandomNumberGenerator > &  randomNumberGenerator,
const param_type parameters 
)
static

tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate.

Clears Markov chain history.

Parameters
markovChain
parameters
Returns
true if markov chain is tuned

◆ tune() [3/4]

bool hops::BinarySearchAcceptanceRateTuner::tune ( MarkovChain markovChain,
RandomNumberGenerator randomNumberGenerator,
const param_type parameters 
)
static

tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate.

Clears Markov chain history.

Parameters
markovChain
parameterssize_t indiciation number of iterations used and the tuned MarkovChain
Returns
true if markov chain is tuned

◆ tune() [4/4]

static bool hops::BinarySearchAcceptanceRateTuner::tune ( std::vector< std::shared_ptr< MarkovChain >> &  markovChain,
std::vector< RandomNumberGenerator > &  randomNumberGenerator,
const param_type parameters 
)
static

tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged to the specified acceptance rate.

Clears Markov chain history.

Parameters
markovChain
parameters
Returns
true if markov chain is tuned

The documentation for this class was generated from the following files: