Struct NutsHamiltonianMonteCarloWalk::Walk
-
template<typename Point, typename Polytope, typename RandomNumberGenerator, typename NegativeGradientFunctor, typename NegativeLogprobFunctor, typename Solver>
struct Walk Public Types
-
typedef Point::FT NT
Public Functions
-
inline Walk(Polytope *P, Point &p, NegativeGradientFunctor &neg_grad_f, NegativeLogprobFunctor &neg_logprob_f, parameters<NT, NegativeGradientFunctor> ¶m, bool burn_in_phase = true)
-
inline void burnin(RandomNumberGenerator &rng, unsigned int N = 1000, unsigned int walk_length = 1)
-
inline void apply(RandomNumberGenerator &rng, unsigned int walk_length = 1, bool burnin = false)
-
inline NT get_eta_solver()
-
inline void disable_adaptive()
-
inline void enable_adaptive()
-
inline void reset_num_runs()
-
inline NT get_ratio_acceptance()
Public Members
-
parameters<NT, NegativeGradientFunctor> ¶ms
-
Solver *solver
-
unsigned int dim
-
long num_runs = 0
-
long total_acceptance = 0
-
NT average_acceptance = 0
-
Point x
-
Point v
-
Point v_pl
-
Point v_min
-
Point v_min_j
-
Point v_pl_j
-
Point X_pl
-
Point X_pl_j
-
Point X_min
-
Point X
-
Point X_rnd_j
-
Point X_min_j
-
Point x_pl_min
-
bool accepted
-
NT eps_step
-
NT mu
-
NT log_tilde_eps
-
NT H_tilde
-
NT alpha
-
NT na
-
typedef Point::FT NT