|
Doxygen
1.9.1
|
Implements likelihood under the assumption of anisotropic white noise. More...
#include <tsgDreamLikelyGaussian.hpp>


Public Member Functions | |
| LikelihoodGaussAnisotropic ()=default | |
| Default constructor for convenience, an object constructed with the default cannot be used until setData() is called. | |
| LikelihoodGaussAnisotropic (std::vector< double > const &variance, std::vector< double > const &data_mean, size_t num_observe=1) | |
| Constructs the class and calls setData(). | |
| ~LikelihoodGaussAnisotropic ()=default | |
| Default destructor. | |
| void | setData (std::vector< double > const &variance, std::vector< double > const &data_mean, size_t num_observe=1) |
| Set the noise magnitude (variance) the observed data (data_mean) and number of observations (num_observe). More... | |
| void | getLikelihood (TypeSamplingForm form, std::vector< double > const &model, std::vector< double > &likely) const override final |
| Compute the likelihood of a set of model outputs. | |
| void | getLikelihood (TypeSamplingForm form, double const model[], int num_samples, double likely[]) const override final |
| Overload for raw-arrays, for interface purposes mostly, e.g., python. | |
| int | getNumOutputs () const override |
| Returns the size of the data_mean vector (for error checking purposes). | |
| void | write (std::ostream &os, int outputs_begin=0, int outputs_end=-1) const |
| Writes the data for a portion of the outputs into a stream. More... | |
| void | read (std::istream &is) |
| Reads the data from a stream, assumes write() has been used first. | |
Public Member Functions inherited from TasDREAM::TasmanianLikelihood | |
| TasmanianLikelihood () | |
| Empty default constructor. | |
| virtual | ~TasmanianLikelihood () |
| Empty virtual destructor. | |
| virtual | operator std::function< void (TypeSamplingForm, const std::vector< double > &, std::vector< double > &)>() const |
| Automatically convert the likelihood into input for TasDREAM::posterior(). | |
Implements likelihood under the assumption of anisotropic white noise.
| void TasDREAM::LikelihoodGaussAnisotropic::setData | ( | std::vector< double > const & | variance, |
| std::vector< double > const & | data_mean, | ||
| size_t | num_observe = 1 |
||
| ) |
Set the noise magnitude (variance) the observed data (data_mean) and number of observations (num_observe).
| variance | is a vector with size equal to the number of model outputs. Each entry represents the noise magnitude (variance) associated with that output. |
| data_mean | is the average of all available observations of the data. |
| num_observe | is the number of observations used to compute the data_mean. |
|
inline |
Writes the data for a portion of the outputs into a stream.