|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
Base class for single-variate distributions that cache sufficient statistics. More...
#include <IMP/isd/distribution.h>
Base class for single-variate distributions that cache sufficient statistics.
Sufficient statistics are one or more statistics whose values are sufficient to describe the entire distribution. For the joint probability of many independent draws from a distribution, the set of all drawn values is a sufficient statistic, but minimally sufficient statistics (such as the mean and variance for a joint normal distribution) often exist, permitting one-time calculation and efficient use of memory.
Children must overload the following methods:
Definition at line 79 of file distribution.h.
Public Member Functions | |
| OneDimensionalSufficientDistribution (std::string name="OneDimensionalSufficientDistribution %1%") | |
| Constructor. | |
| double | evaluate () const |
| Get negative log-density using cached sufficient statistics. | |
| double | get_density () const |
| Get probability density using cached sufficient statistics. | |
| Floats | get_sufficient_statistics () const |
| virtual std::string | get_type_name () const override |
| virtual ::IMP::VersionInfo | get_version_info () const override |
| Get information about the module and version of the object. | |
| void | update_sufficient_statistics (Floats vs) |
| Update cached sufficient statistics from data. | |
| Public Member Functions inherited from IMP::isd::Distribution | |
| Distribution (std::string name="Distribution %1%") | |
| Public Member Functions inherited from IMP::Object | |
| CheckLevel | get_check_level () const |
| get_derived_object (self) | |
| Return this object cast to the most derived subclass. | |
| LogLevel | get_log_level () const |
| void | set_check_level (CheckLevel l) |
| void | set_log_level (LogLevel l) |
| Set the logging level used in this object. | |
| const std::string & | get_name () const |
| Get the (not necessarily unique) name of this object. | |
| void | set_name (std::string name) |
| void | set_was_used (bool tf) const |
| void | show (std::ostream &out=std::cout) const |
| virtual void | clear_caches () |
Protected Member Functions | |
| virtual double | do_evaluate () const =0 |
| virtual double | do_get_density () const |
| virtual Floats | do_get_sufficient_statistics () const =0 |
| virtual void | do_update_sufficient_statistics (Floats vs)=0 |
| Protected Member Functions inherited from IMP::Object | |
| Object (std::string name) | |
| Construct an object with the given name. | |
| virtual void | do_destroy () |
| IMP::isd::OneDimensionalSufficientDistribution::OneDimensionalSufficientDistribution | ( | std::string | name = "OneDimensionalSufficientDistribution %1%" | ) |
Constructor.
Definition at line 88 of file distribution.h.
|
virtual |
Definition at line 107 of file distribution.h.
| double IMP::isd::OneDimensionalSufficientDistribution::evaluate | ( | ) | const |
Get negative log-density using cached sufficient statistics.
Definition at line 102 of file distribution.h.
| double IMP::isd::OneDimensionalSufficientDistribution::get_density | ( | ) | const |
Get probability density using cached sufficient statistics.
Definition at line 105 of file distribution.h.
| Floats IMP::isd::OneDimensionalSufficientDistribution::get_sufficient_statistics | ( | ) | const |
Definition at line 97 of file distribution.h.
|
overridevirtual |
Reimplemented from IMP::isd::Distribution.
Definition at line 107 of file distribution.h.
|
overridevirtual |
Get information about the module and version of the object.
Reimplemented from IMP::isd::Distribution.
Reimplemented in IMP::isd::FNormal, IMP::isd::FStudentT, and IMP::isd::PenalizedComplexityPrior.
Definition at line 107 of file distribution.h.
| void IMP::isd::OneDimensionalSufficientDistribution::update_sufficient_statistics | ( | Floats | vs | ) |
Update cached sufficient statistics from data.
Definition at line 93 of file distribution.h.