![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Match functor that quantifies the goodness of the 3D-position match between two pharmacophore features by comparing their separation against the configured per-feature tolerance. More...
#include <FeaturePositionMatchFunctor.hpp>
Public Member Functions | |
| FeaturePositionMatchFunctor (bool query_mode) | |
Constructs the FeaturePositionMatchFunctor instance. More... | |
| bool | queryMode () const |
| Tells whether the functor operates in query mode. More... | |
| double | 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. More... | |
| double | 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. More... | |
Match functor that quantifies the goodness of the 3D-position match between two pharmacophore features by comparing their separation against the configured per-feature tolerance.
|
inline |
Constructs the FeaturePositionMatchFunctor instance.
| query_mode | If true, the tolerance of the first feature defines the allowed maximum distance; if false, the maximum of the two feature tolerances is used. |
| bool CDPL::Pharm::FeaturePositionMatchFunctor::queryMode | ( | ) | const |
Tells whether the functor operates in query mode.
true if query mode is active, and false otherwise. | 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.
| ftr1 | The first feature. |
| ftr2 | The second feature. |
| 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.
| ftr1 | The first feature. |
| ftr2 | The second feature. |
| xform | The transformation to apply to the position of the second feature. |