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
Various general useful macros for IMP.
#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.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
A nullptr-initialized pointer to an IMP Object.
#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.