Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
adapt_unit_e_static_hmc.hpp
Go to the documentation of this file.
1 #ifndef STAN__MCMC__ADAPT__UNIT__E__STATIC__HMC__BETA
2 #define STAN__MCMC__ADAPT__UNIT__E__STATIC__HMC__BETA
3 
6 
7 namespace stan {
8 
9  namespace mcmc {
10 
11  // Hamiltonian Monte Carlo on a
12  // Euclidean manifold with unit metric,
13  // static integration time,
14  // and adaptive stepsize
15 
16  template <typename M, class BaseRNG>
17  class adapt_unit_e_static_hmc: public unit_e_static_hmc<M, BaseRNG>,
18  public stepsize_adapter {
19 
20  public:
21 
22  adapt_unit_e_static_hmc(M &m, BaseRNG& rng,
23  std::ostream* o = &std::cout, std::ostream* e = 0):
24  unit_e_static_hmc<M, BaseRNG>(m, rng, o, e) {};
25 
27 
28  sample transition(sample& init_sample) {
29 
31 
32  if (this->adapt_flag_) {
34  this->update_L_();
35  }
36 
37  return s;
38 
39  }
40 
44  }
45 
46  };
47 
48  } // mcmc
49 
50 } // stan
51 
52 
53 #endif
void complete_adaptation(double &epsilon)
double accept_stat() const
Definition: sample.hpp:46
void learn_stepsize(double &epsilon, double adapt_stat)
adapt_unit_e_static_hmc(M &m, BaseRNG &rng, std::ostream *o=&std::cout, std::ostream *e=0)
virtual void disengage_adaptation()
double e()
Return the base of the natural logarithm.
Definition: constants.hpp:86
stepsize_adaptation stepsize_adaptation_

     [ Stan Home Page ] © 2011–2014, Stan Development Team.