9 #ifndef IMPSTATISTICS_METRIC_H
10 #define IMPSTATISTICS_METRIC_H
12 #include <IMP/statistics/statistics_config.h>
17 IMPSTATISTICS_BEGIN_NAMESPACE
35 virtual double get_distance(
unsigned int i,
unsigned int j)
const = 0;
37 double get_weight(
unsigned int i)
const {
return do_get_weight(i); }
38 virtual unsigned int get_number_of_items()
const = 0;
44 IMPSTATISTICS_END_NAMESPACE
Helper macros for implementing IMP Objects.
Macros to help with reference counting.
A more IMP-like version of the std::vector.
virtual double do_get_weight(unsigned int i) const
By default return 1.0.
double get_weight(unsigned int i) const
Return a weight for the point.
Common base class for heavy weight IMP objects.
#define IMP_UNUSED(variable)
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
A shared base class to help in debugging and things.
#define IMP_REF_COUNTED_NONTRIVIAL_DESTRUCTOR(Name)
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.