IMP Reference Guide
2.20.2
The Integrative Modeling Platform
|
Compute the distance between two configurations using chi2. More...
#include <IMP/statistics/ChiSquareMetric.h>
Compute the distance between two configurations using chi2.
Each configurations is defined by a list of data points and a list of standard deviations. The distance between the two configurations is defined as the chi2.
Definition at line 24 of file statistics/ChiSquareMetric.h.
Public Member Functions | |
ChiSquareMetric (Floats data_exp, int constr_type=0) | |
void | add_configuration (Floats data, Floats stddev, double weight=1.0) |
double | do_get_weight (unsigned i) const override |
get the weight for the i-th configuration More... | |
double | get_chi_square_experimental (unsigned i) const |
get chi2 from experimental data for the i-th configuration More... | |
Floats | get_data (unsigned i) const |
get the list of data points for the i-th configuration More... | |
double | get_distance (unsigned int i, unsigned int j) const override |
unsigned int | get_number_of_items () const override |
Floats | get_standard_deviation (unsigned i) const |
get the list of standard deviations for the i-th configuration More... | |
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. More... | |
Public Member Functions inherited from IMP::statistics::Metric | |
double | get_weight (unsigned int i) const |
Return a weight for the point. More... | |
Public Member Functions inherited from IMP::Object | |
virtual void | clear_caches () |
CheckLevel | get_check_level () const |
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. More... | |
void | set_was_used (bool tf) const |
void | show (std::ostream &out=std::cout) const |
const std::string & | get_name () const |
void | set_name (std::string name) |
Additional Inherited Members | |
Protected Member Functions inherited from IMP::statistics::Metric | |
Metric (std::string name) | |
virtual double | do_get_weight (unsigned int i) const |
By default return 1.0. More... | |
Protected Member Functions inherited from IMP::Object | |
Object (std::string name) | |
Construct an object with the given name. More... | |
virtual void | do_destroy () |
void IMP::statistics::ChiSquareMetric::add_configuration | ( | Floats | data, |
Floats | stddev, | ||
double | weight = 1.0 |
||
) |
add a configuration, defined by a list of data points, a list of standard deviations, and one weight.
|
override |
get the weight for the i-th configuration
double IMP::statistics::ChiSquareMetric::get_chi_square_experimental | ( | unsigned | i | ) | const |
get chi2 from experimental data for the i-th configuration
Floats IMP::statistics::ChiSquareMetric::get_data | ( | unsigned | i | ) | const |
get the list of data points for the i-th configuration
Floats IMP::statistics::ChiSquareMetric::get_standard_deviation | ( | unsigned | i | ) | const |
get the list of standard deviations for the i-th configuration
|
overridevirtual |
Get information about the module and version of the object.
Reimplemented from IMP::Object.
Definition at line 61 of file statistics/ChiSquareMetric.h.