29 #ifndef CDPL_PHARM_CATIONPIINTERACTIONSCORE_HPP
30 #define CDPL_PHARM_CATIONPIINTERACTIONSCORE_HPP
53 static constexpr
double DEF_MIN_DISTANCE = 3.5;
55 static constexpr
double DEF_MAX_DISTANCE = 5.5;
57 static constexpr
double DEF_MAX_ANGLE = 30.0;
78 double max_ang = DEF_MAX_ANGLE);
Definition of class CDPL::Pharm::FeatureInteractionScore.
Definition of the preprocessor macro CDPL_PHARM_API.
#define CDPL_PHARM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Pharm::FeatureInteractionScore implementation that scores an aromatic/cationic feature pair by combin...
Definition: CationPiInteractionScore.hpp:49
double operator()(const Feature &ftr1, const Feature &ftr2) const
Evaluates the cation-π interaction score between features ftr1 and ftr2.
CationPiInteractionScore(bool aro_cat, double min_dist=DEF_MIN_DISTANCE, double max_dist=DEF_MAX_DISTANCE, double max_ang=DEF_MAX_ANGLE)
Constructs a CationPiInteractionScore functor with the specified constraints.
std::function< double(double)> AngleScoringFunction
Type of the function mapping a cation-displacement angle to its score contribution.
Definition: CationPiInteractionScore.hpp:67
double getMaxAngle() const
Returns the currently configured maximum angle between cation displacement and aromatic-plane normal.
void setAngleScoringFunction(const AngleScoringFunction &func)
Specifies the function that maps the cation-displacement angle to its score contribution.
double getMaxDistance() const
Returns the currently configured maximum cation-aromatic distance.
std::function< double(double)> DistanceScoringFunction
Type of the function mapping a cation-aromatic distance to its score contribution.
Definition: CationPiInteractionScore.hpp:65
std::shared_ptr< CationPiInteractionScore > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated CationPiInteractionScore instance...
Definition: CationPiInteractionScore.hpp:62
double operator()(const Math::Vector3D &ftr1_pos, const Feature &ftr2) const
Evaluates the cation-π interaction score with the first feature represented only by its 3D position f...
double getMinDistance() const
Returns the currently configured minimum cation-aromatic distance.
void setDistanceScoringFunction(const DistanceScoringFunction &func)
Specifies the function that maps the cation-aromatic distance to its score contribution.
Abstract base class for scoring functors that quantify the strength of a directional pharmacophore-fe...
Definition: FeatureInteractionScore.hpp:51
Abstract base class representing a single pharmacophore feature within a parent Pharm::Pharmacophore.
Definition: Feature.hpp:48
CVector< double, 3 > Vector3D
Bounded 3 element vector holding floating point values of type double.
Definition: Vector.hpp:2937
The namespace of the Chemical Data Processing Library.