9#ifndef IMPSTATISTICS_METRIC_H
10#define IMPSTATISTICS_METRIC_H
12#include <IMP/statistics/statistics_config.h>
17IMPSTATISTICS_BEGIN_NAMESPACE
27 Metric(std::string name);
35 virtual double get_distance(
unsigned int i,
unsigned int j)
const = 0;
38 virtual unsigned int get_number_of_items()
const = 0;
44IMPSTATISTICS_END_NAMESPACE
A shared base class to help in debugging and things.
Common base class for heavy weight IMP objects.
Store data to be clustered for distance metric based algorithms.
double get_weight(unsigned int i) const
Return a weight for the point.
virtual double do_get_weight(unsigned int i) const
By default return 1.0.
IMP::Vector< IMP::Pointer< Metric > > Metrics
double get_distance(const VectorD< D > &v1, const VectorD< D > &v2)
Compute the distance between two vectors.
Helper macros for implementing IMP Objects.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
Macros to help with reference counting.
#define IMP_REF_COUNTED_NONTRIVIAL_DESTRUCTOR(Name)
#define IMP_UNUSED(variable)