20 #ifndef GAIA_DISTANCEFUNCTION_H 21 #define GAIA_DISTANCEFUNCTION_H 23 #include "layoutawarefactory.h" 24 #include "parameter.h" 55 int seg1 = 0,
int seg2 = 0)
const = 0;
57 const PointLayout& layout()
const {
return _layout; }
85 typedef QPair<int, Real> DimWeight;
92 #endif // GAIA_DISTANCEFUNCTION_H const Region & checkFixedLength(const Region ®ion) const
Checks that the given Region only contains fixed-length descriptors and throws an exception if not...
Definition: distancefunction.cpp:94
QStringList validParams
List of valid parameters this analyzer accepts.
Definition: distancefunction.h:71
A region is a physical location in the point layout which consists in a list of segments.
Definition: region.h:125
void registerMetrics()
Registers all the metrics available inside the MetricFactory.
Definition: distancefunction.cpp:56
This class describes the layout of a point.
Definition: pointlayout.h:60
virtual Real operator()(const Point &p1, const Point &p2, int seg1=0, int seg2=0) const =0
This function computes the distance between the two given points.
Main Gaia namespace, which contains all the library functions.
Definition: addfield.cpp:22
Definition: distancefunction.h:37
Definition: parameter.h:34
QString name
Name for the metric, usually the key that was used to instantiate it from the factory.
Definition: distancefunction.h:44
A tuned implementation of a factory.
Definition: layoutawarefactory.h:39