8 #ifndef IMPSTATISTICS_CHI_SQUARE_METRIC_H
9 #define IMPSTATISTICS_CHI_SQUARE_METRIC_H
11 #include <IMP/statistics/statistics_config.h>
17 IMPSTATISTICS_BEGIN_NAMESPACE
35 std::vector<Floats> datas_;
37 std::vector<Floats> stddev_;
40 double get_chisquare(
unsigned i,
unsigned j)
const;
42 double get_scalarchisquare(
unsigned i,
unsigned j)
const;
48 void add_configuration(
Floats data,
Floats stddev,
double weight = 1.0);
50 Floats get_data(
unsigned i)
const;
52 Floats get_standard_deviation(
unsigned i)
const;
56 double get_chi_square_experimental(
unsigned i)
const;
64 IMPSTATISTICS_END_NAMESPACE
Helper macros for implementing IMP Objects.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual double do_get_weight(unsigned int i) const
By default return 1.0.
Compute the distance between two configurations using chi2.
A nullptr-initialized pointer to an IMP Object.
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Store data to be clustered for distance metric based algorithms.