swh:1:snp:d80eec3f654c152adbdd6e641362bcb340d39fe2
Raw File
Tip revision: e8c0967f38ba714b3397b175d21988dacec58601 authored by serban-nicusor-toptal on 18 October 2019, 22:22:13 UTC
release/v2.21.0: updating version numbers.
Tip revision: e8c0967
base_mcmc.hpp
#ifndef STAN_MCMC_BASE_MCMC_HPP
#define STAN_MCMC_BASE_MCMC_HPP

#include <stan/callbacks/logger.hpp>
#include <stan/callbacks/writer.hpp>
#include <stan/mcmc/sample.hpp>
#include <ostream>
#include <string>
#include <vector>

namespace stan {
namespace mcmc {

class base_mcmc {
 public:
  base_mcmc() {}

  virtual ~base_mcmc() {}

  virtual sample transition(sample& init_sample, callbacks::logger& logger) = 0;

  virtual void get_sampler_param_names(std::vector<std::string>& names) {}

  virtual void get_sampler_params(std::vector<double>& values) {}

  virtual void write_sampler_state(callbacks::writer& writer) {}

  virtual void get_sampler_diagnostic_names(
      std::vector<std::string>& model_names, std::vector<std::string>& names) {}

  virtual void get_sampler_diagnostics(std::vector<double>& values) {}
};

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