Gaia
|
This class calculates a distance between segments from two points. More...
#include <crosssegmentdistance.h>
Public Member Functions | |
CrossSegmentDistance (const PointLayout &layout, const ParameterMap ¶ms) | |
Real | operator() (const Point &p1, const Point &p2, int seg1, int seg2) const |
This function computes the distance between the two given points. More... | |
![]() | |
DistanceFunction (const PointLayout &layout, const ParameterMap ¶ms) | |
const PointLayout & | layout () const |
const Region & | checkFixedLength (const Region ®ion) const |
Checks that the given Region only contains fixed-length descriptors and throws an exception if not. More... | |
Protected Attributes | |
DistanceFunction * | _dist |
DistAggr * | _aggr1 |
DistAggr * | _aggr2 |
![]() | |
PointLayout | _layout |
ParameterMap | _params |
Region | _region |
Additional Inherited Members | |
![]() | |
QString | name |
Name for the metric, usually the key that was used to instantiate it from the factory. | |
QStringList | validParams |
List of valid parameters this analyzer accepts. More... | |
This class calculates a distance between segments from two points.
The function used to calculate the distance between two segments is given by the distance parameter. What it does is the following:
func1
to aggregate the results.func2
to aggregate the results.WARNING: this metric is not final, and it might change its behavior in the future.
distance | the name of the distance to be composed with. |
params | the parameters for creating the distance. |
func1 | the first aggregation function (min, max or mean). |
func2 | the second aggregation function (min, max or mean). |
|
virtual |
This function computes the distance between the two given points.
It needs to be implemented in each subclass. It takes as optional arguments the number of the segments on which to operate.
Implements gaia2::DistanceFunction.