8 #ifndef IMPSPB_CONTACT_MAP_METRIC_H
9 #define IMPSPB_CONTACT_MAP_METRIC_H
13 #include <IMP/spb/spb_config.h>
15 IMPSPB_BEGIN_NAMESPACE
25 std::vector<Floats> matrices_;
33 void add_configuration(
double weight = 1.0);
34 void add_map(
Floats matrix,
double weight = 1.0);
37 Floats get_item(
unsigned i)
const;
40 double get_distance(
unsigned int i,
unsigned int j)
const override;
41 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 get_rmsd(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
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.