FeaturePositionMatchFunctor.
More...
#include <FeaturePositionMatchFunctor.hpp>
◆ FeaturePositionMatchFunctor()
CDPL::Pharm::FeaturePositionMatchFunctor::FeaturePositionMatchFunctor |
( |
bool |
query_mode | ) |
|
|
inline |
◆ queryMode()
bool CDPL::Pharm::FeaturePositionMatchFunctor::queryMode |
( |
| ) |
const |
◆ operator()() [1/2]
double CDPL::Pharm::FeaturePositionMatchFunctor::operator() |
( |
const Feature & |
ftr1, |
|
|
const Feature & |
ftr2 |
|
) |
| const |
Checks if the distance between ftr1 and ftr2 is below the allowed maximum and calculates a score reflecting their proximity.
If in 'query mode', the tolerance of ftr1 specifies the allowed maximum distance. Otherwise, the maximum tolerance of the features takes effect.
- Parameters
-
ftr1 | The first feature. |
ftr2 | The second feature. |
- Returns
- A score from 0 (=outside effective tolerance) and 1 (exact position match) that specifies the proximity of the features.
- See also
- Pharm::getPosition(const Feature&), Pharm::getTolerance(const Feature&)
◆ operator()() [2/2]
double CDPL::Pharm::FeaturePositionMatchFunctor::operator() |
( |
const Feature & |
ftr1, |
|
|
const Feature & |
ftr2, |
|
|
const Math::Matrix4D & |
xform |
|
) |
| const |
Checks if the distance between ftr1 and ftr2 is below the allowed maximum and calculates a score reflecting their proximity.
If in 'query mode', the tolerance of ftr1 specifies the allowed maximum distance. Otherwise, the maximum tolerance of the features takes effect.
- Parameters
-
ftr1 | The first feature. |
ftr2 | The second feature. |
xform | The transformation to apply to the position of the second feature. |
- Returns
- A score from 0 (=outside effective tolerance) and 1 (exact position match) that specifies the proximity of the features.
- See also
- Pharm::getPosition(const Feature&), Pharm::getTolerance(const Feature&)
The documentation for this class was generated from the following file: