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"
Go to the source code of this file.
|
template<typename _datum_t , typename _data_t > |
std::ostream & | operator<< (std::ostream &o, Bayesable< _datum_t, _data_t > &x) |
|
|
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; } |
|
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)
◆ operator<<()
template<typename _datum_t , typename _data_t >
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
Bayesable< _datum_t, _data_t > & |
x |
|
) |
| |
◆ 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; } |