#include <TNormalVariable.h>
|
| TNormalVariable () |
|
template<typename T > |
void | set (T v) |
|
float | get () const |
| Get interfaces to the transformed variable. More...
|
|
virtual double | compute_prior () override |
|
virtual double | compute_likelihood (const data_t &data, const double breakout=-infinity) override |
|
virtual std::optional< std::pair< self_t, double > > | propose () const override |
|
virtual self_t | restart () const override |
|
virtual size_t | hash () const override |
|
virtual bool | operator== (const self_t &h) const override |
|
virtual std::string | string (std::string prefix="") const override |
|
| MCMCable () |
|
virtual bool | operator!= (const TNormalVariable< f > &h) const |
|
| Bayesable () |
|
virtual double | compute_single_likelihood (const datum_t &datum) |
| Compute the likelihood of a single data point. More...
|
|
virtual void | clear_bayes () |
|
virtual double | compute_likelihood (const data_t &data, const double breakout=-infinity) |
| Compute the likelihood of a collection of data, by calling compute_single_likelihood on each. This stops if our likelihood falls below breakout. More...
|
|
virtual double | compute_posterior (const data_t &data, const std::pair< double, double > breakoutpair=std::make_pair(-infinity, 1.0)) |
| Compute the posterior, by calling prior and likelihood. This includes only a little bit of fanciness, which is that if our prior is -inf, then we don't both computing the likelihood. More...
|
|
virtual double | at_temperature (double t) const |
|
auto | operator (const Bayesable< datum_t, data_t > &other) const |
|
virtual void | show (std::string prefix="") |
|
|
static TNormalVariable< f > | sample () |
| Static function for making a hypothesis. Be careful using this with references because they may not foward right (for reasons that are unclear to me) More...
|
|
template<float(*)(float) f>
class TNormalVariable< f >
- Author
- Steven Piantadosi
- Date
- 11/09/20
◆ data_t
template<float(*)(float) f>
◆ self_t
template<float(*)(float) f>
◆ TNormalVariable()
template<float(*)(float) f>
◆ compute_likelihood()
template<float(*)(float) f>
◆ compute_prior()
template<float(*)(float) f>
◆ get()
template<float(*)(float) f>
Get interfaces to the transformed variable.
◆ hash()
template<float(*)(float) f>
◆ operator==()
template<float(*)(float) f>
◆ propose()
template<float(*)(float) f>
◆ restart()
template<float(*)(float) f>
◆ set()
template<float(*)(float) f>
template<typename T >
◆ string()
template<float(*)(float) f>
virtual std::string TNormalVariable< f >::string |
( |
std::string |
prefix = "" | ) |
const |
|
inlineoverridevirtual |
◆ can_propose
template<float(*)(float) f>
◆ fvalue
template<float(*)(float) f>
◆ MEAN
template<float(*)(float) f>
◆ PROPOSAL_SCALE
template<float(*)(float) f>
◆ SD
template<float(*)(float) f>
◆ value
template<float(*)(float) f>
The documentation for this class was generated from the following file: