Gaia
|
This class computes a distance which returns a random number between 0 and the specified range. More...
#include <randomdistance.h>
Public Member Functions | |
RandomDistance (const PointLayout &, const ParameterMap &) | |
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 | |
MTRand | _mtrand |
Real | _range |
![]() | |
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 computes a distance which returns a random number between 0 and the specified range.
It uses a uniform distribution.
range | the max value this distance can return (minimum being 0). |
|
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.