File nuts_hmc_walk.hpp
-
struct NutsHamiltonianMonteCarloWalk
-
template<typename NT, typename OracleFunctor>
struct parameters Public Functions
-
inline parameters(OracleFunctor const &F, unsigned int dim, NT epsilon_ = 2)
-
inline parameters(OracleFunctor const &F, unsigned int dim, NT epsilon_ = 2)
-
template<typename Point, typename Polytope, typename RandomNumberGenerator, typename NegativeGradientFunctor, typename NegativeLogprobFunctor, typename Solver>
struct Walk Public Types
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 void disable_adaptive()
-
inline void enable_adaptive()
-
inline void reset_num_runs()
Public Members
-
parameters<NT, NegativeGradientFunctor> ¶ms
-
unsigned int dim
-
long num_runs = 0
-
long total_acceptance = 0
-
bool accepted
-
inline Walk(Polytope *P, Point &p, NegativeGradientFunctor &neg_grad_f, NegativeLogprobFunctor &neg_logprob_f, parameters<NT, NegativeGradientFunctor> ¶m, bool burn_in_phase = true)
-
template<typename NT, typename OracleFunctor>