#include <VectorHalfNormalHypothesis.h>
|
| VectorHalfNormalHypothesis () |
|
| VectorHalfNormalHypothesis (int n) |
|
double | operator() (int i) const |
|
void | set (int i, double v) |
|
void | set_can_propose (size_t i, bool b) |
| Set whether we can propose to each element of b or not. More...
|
|
void | set_size (size_t n) |
|
size_t | size () const |
|
virtual double | compute_prior () override |
|
virtual double | compute_likelihood (const data_t &data, const double breakout=-infinity) override |
| 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 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 VectorHalfNormalHypothesis &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_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 VectorHalfNormalHypothesis | 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...
|
|
- Author
- Steven Piantadosi
- Date
- 13/07/21
◆ self_t
◆ VectorHalfNormalHypothesis() [1/2]
VectorHalfNormalHypothesis::VectorHalfNormalHypothesis |
( |
| ) |
|
|
inline |
◆ VectorHalfNormalHypothesis() [2/2]
VectorHalfNormalHypothesis::VectorHalfNormalHypothesis |
( |
int |
n | ) |
|
|
inline |
◆ compute_likelihood()
virtual double VectorHalfNormalHypothesis::compute_likelihood |
( |
const data_t & |
data, |
|
|
const double |
breakout = -infinity |
|
) |
| |
|
inlineoverridevirtual |
Compute the likelihood of a collection of data, by calling compute_single_likelihood on each. This stops if our likelihood falls below breakout.
- Parameters
-
- Returns
Reimplemented from Bayesable< Args... >.
◆ compute_prior()
virtual double VectorHalfNormalHypothesis::compute_prior |
( |
| ) |
|
|
inlineoverridevirtual |
◆ hash()
virtual size_t VectorHalfNormalHypothesis::hash |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ operator()()
◆ operator==()
◆ propose()
virtual std::optional<std::pair<self_t,double> > VectorHalfNormalHypothesis::propose |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ restart()
virtual self_t VectorHalfNormalHypothesis::restart |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ set()
void VectorHalfNormalHypothesis::set |
( |
int |
i, |
|
|
double |
v |
|
) |
| |
|
inline |
◆ set_can_propose()
void VectorHalfNormalHypothesis::set_can_propose |
( |
size_t |
i, |
|
|
bool |
b |
|
) |
| |
|
inline |
Set whether we can propose to each element of b or not.
- Parameters
-
◆ set_size()
void VectorHalfNormalHypothesis::set_size |
( |
size_t |
n | ) |
|
|
inline |
◆ size()
size_t VectorHalfNormalHypothesis::size |
( |
| ) |
const |
|
inline |
◆ string()
virtual std::string VectorHalfNormalHypothesis::string |
( |
std::string |
prefix = "" | ) |
const |
|
inlineoverridevirtual |
◆ can_propose
std::vector<bool> VectorHalfNormalHypothesis::can_propose |
◆ MEAN
double VectorHalfNormalHypothesis::MEAN = 0.0 |
◆ PROPOSAL_SCALE
double VectorHalfNormalHypothesis::PROPOSAL_SCALE = 0.20 |
◆ SD
double VectorHalfNormalHypothesis::SD = 1.0 |
◆ value
Vector VectorHalfNormalHypothesis::value |
The documentation for this class was generated from the following file: