Fleet  0.0.9
Inference in the LOT
Classes | Functions | Variables
Bayesable.h File Reference

The Bayesable class provides an interface for hypotheses that support Bayesian inference (e.g. computing priors, likelihoods, and posteriors) Note that this class stores prior, likelihood, posterior always at temperature 1.0, and you can get the values of the posterior at other temperatures via Bayesable.at_temperature(double t) More...

#include <utility>
#include <iomanip>
#include <signal.h>
#include "FleetArgs.h"
#include "Errors.h"
#include "Datum.h"
#include "IO.h"
#include "Statistics/FleetStatistics.h"
#include "Miscellaneous.h"
#include "Statistics/StreamingSum.h"
Include dependency graph for Bayesable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Bayesable< _datum_t, _data_t >
 

Functions

template<typename _datum_t , typename _data_t >
std::ostream & operator<< (std::ostream &o, Bayesable< _datum_t, _data_t > &x)
 

Variables

std::atomic< bool > CTRL_C
 
template<typename HYP >
std::function get_posterior = [](const HYP& h) {return h.posterior; }
 
template<typename HYP >
std::function get_prior = [](const HYP& h) {return h.prior; }
 
template<typename HYP >
std::function get_likelihood = [](const HYP& h) {return h.likelihood; }
 

Detailed Description

The Bayesable class provides an interface for hypotheses that support Bayesian inference (e.g. computing priors, likelihoods, and posteriors) Note that this class stores prior, likelihood, posterior always at temperature 1.0, and you can get the values of the posterior at other temperatures via Bayesable.at_temperature(double t)

Function Documentation

◆ operator<<()

template<typename _datum_t , typename _data_t >
std::ostream& operator<< ( std::ostream &  o,
Bayesable< _datum_t, _data_t > &  x 
)

Variable Documentation

◆ CTRL_C

std::atomic<bool> CTRL_C

◆ get_likelihood

template<typename HYP >
std::function get_likelihood = [](const HYP& h) {return h.likelihood; }

◆ get_posterior

template<typename HYP >
std::function get_posterior = [](const HYP& h) {return h.posterior; }

◆ get_prior

template<typename HYP >
std::function get_prior = [](const HYP& h) {return h.prior; }