swh:1:snp:d80eec3f654c152adbdd6e641362bcb340d39fe2
Raw File
Tip revision: e546c9c5b6beacd766bbd8ca2bce2cdf2e134ec5 authored by Mitzi Morris on 26 December 2016, 20:34:50 UTC
Merge pull request #2192 from stan-dev/release/v2.14.0
Tip revision: e546c9c
base_adapter.hpp
#ifndef STAN_MCMC_BASE_ADAPTER_HPP
#define STAN_MCMC_BASE_ADAPTER_HPP

namespace stan {
  namespace mcmc {

    class base_adapter {
    public:
      base_adapter()
        : adapt_flag_(false) {}

      virtual void engage_adaptation() {
        adapt_flag_ = true;
      }

      virtual void disengage_adaptation() {
        adapt_flag_ = false;
      }

      bool adapting() {
        return adapt_flag_;
      }

    protected:
      bool adapt_flag_;
    };

  }  // mcmc
}  // stan
#endif
back to top