16 template<
typename HYP>
22 typename HYP::data_t*
data;
25 PriorInference(
typename HYP::Grammar_t* g,
typename HYP::data_t* d, HYP* fr=
nullptr) :
26 grammar(g), data(d), from(fr) {
41 h.compute_posterior(*data);
HYP::data_t * data
Definition: PriorInference.h:22
PriorInference(typename HYP::Grammar_t *g, typename HYP::data_t *d, HYP *fr=nullptr)
Definition: PriorInference.h:25
static MyHypothesis sample()
Static function for making a hypothesis. Be careful using this with references because they may not f...
Definition: MCMCable.h:29
HYP::Grammar_t * grammar
Definition: PriorInference.h:21
void start()
Definition: Control.h:54
This manages multiple threads for running inference. This requires a subclass to define run_thread...
HYP * from
Definition: PriorInference.h:23
Definition: generator.hpp:21
Definition: ThreadedInferenceInterface.h:22
Definition: PriorInference.h:17
bool running()
Definition: Control.h:63
This class has all the information for running MCMC or MCTS in a little package. It defaultly constru...
generator< HYP & > run_thread(Control &ctl) override
Definition: PriorInference.h:29