1 #ifndef STAN__MCMC__WINDOWED__ADAPTATION__BETA
2 #define STAN__MCMC__WINDOWED__ADAPTATION__BETA
33 unsigned int init_buffer,
34 unsigned int term_buffer,
35 unsigned int base_window,
36 std::ostream*
e = 0) {
38 if (num_warmup < 20) {
41 *
e <<
" performed for num_warmup < 20" << std::endl << std::endl;
46 if (init_buffer + base_window + term_buffer > num_warmup) {
49 *
e <<
"WARNING: The initial buffer, adaptation window, and terminal buffer" << std::endl;
50 *
e <<
" overflow the total number of warmup iterations." << std::endl;
59 *
e <<
" Defaulting to a 15%/75%/10% partition," << std::endl;
windowed_adaptation(std::string name)
bool end_adaptation_window()
unsigned int adapt_base_window_
unsigned int adapt_window_size_
unsigned int adapt_init_buffer_
void set_window_params(unsigned int num_warmup, unsigned int init_buffer, unsigned int term_buffer, unsigned int base_window, std::ostream *e=0)
unsigned int adapt_term_buffer_
unsigned int adapt_next_window_
void compute_next_window()
double e()
Return the base of the natural logarithm.
std::string estimator_name_
unsigned int adapt_window_counter_