queso-0.57.1
|
#include <Algorithm.h>
Public Member Functions | |
Algorithm (const BaseEnvironment &env, const BaseTKGroup< V, M > &tk) | |
~Algorithm () | |
double | acceptance_ratio (MarkovChainPositionData< V > x, MarkovChainPositionData< V > y, const V &tk_pos_x, const V &tk_pos_y) |
Calculates the finite dimensional Metropolis-Hastings acceptance ratio. More... | |
Private Attributes | |
const BaseEnvironment & | m_env |
const BaseTKGroup< V, M > & | m_tk |
Definition at line 35 of file Algorithm.h.
QUESO::Algorithm< V, M >::Algorithm | ( | const BaseEnvironment & | env, |
const BaseTKGroup< V, M > & | tk | ||
) |
Definition at line 36 of file Algorithm.C.
QUESO::Algorithm< V, M >::~Algorithm | ( | ) |
Definition at line 45 of file Algorithm.C.
double QUESO::Algorithm< V, M >::acceptance_ratio | ( | MarkovChainPositionData< V > | x, |
MarkovChainPositionData< V > | y, | ||
const V & | tk_pos_x, | ||
const V & | tk_pos_y | ||
) |
Calculates the finite dimensional Metropolis-Hastings acceptance ratio.
tk_pos_x is the position of the tk when evaluating for x tk_pos_y is the position of the tk when evaluating for y
This method is called by the delayed rejection procedure.
Definition at line 51 of file Algorithm.C.
References QUESO::MarkovChainPositionData< V >::logTarget(), QUESO::MarkovChainPositionData< V >::outOfTargetSupport(), QUESO::queso_isnan(), and QUESO::MarkovChainPositionData< V >::vecValues().
|
private |
Definition at line 53 of file Algorithm.h.
|
private |
Definition at line 54 of file Algorithm.h.