8 #ifndef IMPSPB_CHI_SQUARE_METRIC_H
9 #define IMPSPB_CHI_SQUARE_METRIC_H
12 #include <IMP/spb/spb_config.h>
14 IMPSPB_BEGIN_NAMESPACE
24 std::vector<Floats> nus_;
25 std::vector<Floats> stddev_;
27 double get_chisquare(
unsigned i,
unsigned j)
const;
29 double get_scalarchisquare(
unsigned i,
unsigned j)
const;
35 void add_configuration(
Floats nu,
Floats stddev,
double weight = 1.0);
37 Floats get_nu(
unsigned i)
const;
38 Floats get_stddev(
unsigned i)
const;
41 double get_chisquare_exp(
unsigned i)
const;
43 double get_distance(
unsigned int i,
unsigned int j)
const override;
44 unsigned int get_number_of_items()
const override;
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
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.