13 template<
typename this_t,
typename... Args>
20 [[nodiscard]]
virtual std::optional<std::pair<this_t,double>>
propose()
const = 0;
21 [[nodiscard]]
virtual this_t
restart()
const = 0;
22 virtual bool operator==(
const this_t& h)
const = 0;
29 [[nodiscard]]
static this_t
sample() {
30 assert(
false &&
"*** This should not be called -- must be overwritten in derived class");
virtual std::optional< std::pair< this_t, double > > propose() const =0
static this_t sample()
Static function for making a hypothesis. Be careful using this with references because they may not f...
Definition: MCMCable.h:29
Definition: MCMCable.h:14
MCMCable()
Definition: MCMCable.h:16
virtual bool operator!=(const this_t &h) const
Definition: MCMCable.h:34
Definition: Bayesable.h:33
virtual this_t restart() const =0
The Bayesable class provides an interface for hypotheses that support Bayesian inference (e...
virtual bool operator==(const this_t &h) const =0