8#ifndef IMPSPB_CONTACT_MAP_METRIC_H
9#define IMPSPB_CONTACT_MAP_METRIC_H
12#include <IMP/spb/spb_config.h>
24 std::vector<Floats> matrices_;
30 ContactMapMetric(
Particles ps,
double r0,
int nn,
int mm);
32 void add_configuration(
double weight = 1.0);
33 void add_map(
Floats matrix,
double weight = 1.0);
35 Float get_weight(
unsigned i)
const;
36 Floats get_item(
unsigned i)
const;
39 double get_distance(
unsigned int i,
unsigned int j)
const override;
40 unsigned int get_number_of_items()
const override;
Store data to be clustered for distance metric based algorithms.
Vector< VectorD< 3 > > Vector3Ds
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
double Float
Basic floating-point value (could be float, double...).
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.