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;
49 void add_configuration(
Floats data,
Floats stddev,
double weight = 1.0);
51 Floats get_data(
unsigned i)
const;
53 Floats get_standard_deviation(
unsigned i)
const;
57 double get_chi_square_experimental(
unsigned i)
const;
59 double get_distance(
unsigned int i,
unsigned int j)
const IMP_OVERRIDE;
60 unsigned int get_number_of_items()
const IMP_OVERRIDE;
65 IMPSTATISTICS_END_NAMESPACE
A nullptr-initialized pointer to an IMP 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.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Various general useful macros for IMP.
Store data to be clustered for distance metric based algorithms.