8 #ifndef IMPSPB_CHI_SQUARE_METRIC_H
9 #define IMPSPB_CHI_SQUARE_METRIC_H
13 #include <IMP/spb/spb_config.h>
15 IMPSPB_BEGIN_NAMESPACE
25 std::vector<Floats> nus_;
26 std::vector<Floats> stddev_;
28 double get_chisquare(
unsigned i,
unsigned j)
const;
30 double get_scalarchisquare(
unsigned i,
unsigned j)
const;
36 void add_configuration(
Floats nu,
Floats stddev,
double weight = 1.0);
38 Floats get_nu(
unsigned i)
const;
39 Floats get_stddev(
unsigned i)
const;
42 double get_chisquare_exp(
unsigned i)
const;
44 double get_distance(
unsigned int i,
unsigned int j)
const override;
45 unsigned int get_number_of_items()
const override;
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Include all non-deprecated headers in IMP.statistics.
Include all non-deprecated headers in IMP.algebra.
double get_weight(unsigned int i) const
Return a weight for the point.
double Float
Basic floating-point value (could be float, double...)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Store data to be clustered for distance metric based algorithms.