29 #ifndef CDPL_GRAIL_FEATUREINTERACTIONSCOREGRIDCALCULATOR_HPP
30 #define CDPL_GRAIL_FEATUREINTERACTIONSCOREGRIDCALCULATOR_HPP
49 template <
typename PT,
typename CT,
typename ST>
56 class FeatureContainer;
70 static constexpr
double DEF_DISTANCE_CUTOFF = 10.0;
72 typedef std::shared_ptr<FeatureInteractionScoreGridCalculator>
SharedPointer;
131 typedef std::vector<const Pharm::Feature*> FeatureList;
132 typedef Internal::Octree<Math::Vector3D, Math::Vector3DArray, double> Octree;
133 typedef std::shared_ptr<Octree> OctreePtr;
134 typedef std::vector<std::size_t> FeatureIndexList;
136 FeatureList tgtFeatures;
144 FeatureIndexList featureIndices;
Definition of the preprocessor macro CDPL_GRAIL_API.
#define CDPL_GRAIL_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of a spatial grid data type.
Definition of the class CDPL::Math::VectorArray.
Definition of vector data types.
FeatureInteractionScoreGridCalculator.
Definition: FeatureInteractionScoreGridCalculator.hpp:67
const ScoringFunction & getScoringFunction() const
FeatureInteractionScoreGridCalculator(const ScoringFunction &func)
void setFeatureSelectionPredicate(const FeaturePredicate &pred)
void normalizeScores(bool normalize)
FeatureInteractionScoreGridCalculator & operator=(const FeatureInteractionScoreGridCalculator &calc)
void setScoringFunction(const ScoringFunction &func)
double getDistanceCutoff() const
std::function< double(const Math::Vector3D &, const Pharm::Feature &)> ScoringFunction
Definition: FeatureInteractionScoreGridCalculator.hpp:75
std::function< double(const Math::DVector &)> ScoreCombinationFunction
Definition: FeatureInteractionScoreGridCalculator.hpp:76
bool scoresNormalized() const
void setScoreCombinationFunction(const ScoreCombinationFunction &func)
~FeatureInteractionScoreGridCalculator()
FeatureInteractionScoreGridCalculator()
const ScoreCombinationFunction & getScoreCombinationFunction() const
std::shared_ptr< FeatureInteractionScoreGridCalculator > SharedPointer
Definition: FeatureInteractionScoreGridCalculator.hpp:72
void setDistanceCutoff(double dist)
std::function< bool(const Pharm::Feature &)> FeaturePredicate
Definition: FeatureInteractionScoreGridCalculator.hpp:74
const FeaturePredicate & getFeatureSelectionPredicate() const
FeatureInteractionScoreGridCalculator(const ScoringFunction &scoring_func, const ScoreCombinationFunction &comb_func)
FeatureInteractionScoreGridCalculator(const FeatureInteractionScoreGridCalculator &calc)
void calculate(const Pharm::FeatureContainer &tgt_ftrs, Grid::DSpatialGrid &grid)
SpatialGrid.
Definition: SpatialGrid.hpp:47
FeatureContainer.
Definition: FeatureContainer.hpp:53
Feature.
Definition: Feature.hpp:48
VectorArray< Vector3D > Vector3DArray
An array of Math::Vector3D objects.
Definition: VectorArray.hpp:84
MatrixNormInfinity< E >::ResultType normInf(const MatrixExpression< E > &e)
Definition: MatrixExpression.hpp:917
GridElementSum< E >::ResultType sum(const GridExpression< E > &e)
Definition: GridExpression.hpp:416
CVector< double, 3 > Vector3D
A bounded 3 element vector holding floating point values of type double.
Definition: Vector.hpp:1637
The namespace of the Chemical Data Processing Library.
Definition: FeatureInteractionScoreGridCalculator.hpp:79
double operator()(const Math::DVector &scores) const
Definition: FeatureInteractionScoreGridCalculator.hpp:81
Definition: FeatureInteractionScoreGridCalculator.hpp:88
double operator()(const Math::DVector &scores) const
Definition: FeatureInteractionScoreGridCalculator.hpp:90