Chemical Data Processing Library C++ API - Version 1.4.0
Public Member Functions | List of all members
CDPL::Descr::FeatureRDFCodeCalculator Class Reference

RDFCodeCalculator implementation for the calculation of feature-centered radial distribution function (RDF) codes of pharmacophores. More...

#include <FeatureRDFCodeCalculator.hpp>

+ Inheritance diagram for CDPL::Descr::FeatureRDFCodeCalculator:

Public Member Functions

 FeatureRDFCodeCalculator ()
 Constructs the FeatureRDFCodeCalculator instance. More...
 
 FeatureRDFCodeCalculator (const Pharm::FeatureContainer &cntnr, Math::DVector &rdf_code)
 Constructs the FeatureRDFCodeCalculator instance and calculates the RDF code of the features provided by cntnr. More...
 
void calculate (const Pharm::FeatureContainer &cntnr, Math::DVector &rdf_code)
 Calculates the RDF code of the features provided by cntnr. More...
 
- Public Member Functions inherited from CDPL::Descr::RDFCodeCalculator< Pharm::Feature >
 RDFCodeCalculator ()
 Constructs the RDFCodeCalculator instance. More...
 
void setSmoothingFactor (double factor)
 Allows to specify the smoothing factor used in the calculation of entity pair RDF contributions. More...
 
double getSmoothingFactor () const
 Returns the smoothing factor used in the calculation of entity pair RDF contributions. More...
 
void setScalingFactor (double factor)
 Allows to specify the scaling factor for the RDF code elements. More...
 
double getScalingFactor () const
 Returns the scaling factor applied to the RDF code elements. More...
 
void setStartRadius (double start_radius)
 Sets the starting value of the radius. More...
 
double getStartRadius () const
 Returns the starting value of the radius. More...
 
void setRadiusIncrement (double radius_inc)
 Sets the radius step size between successive RDF code elements. More...
 
double getRadiusIncrement () const
 Returns the radius step size between successive RDF code elements. More...
 
void setNumSteps (std::size_t num_steps)
 Sets the number of desired radius incrementation steps. More...
 
std::size_t getNumSteps () const
 Returns the number of performed radius incrementation steps. More...
 
void setEntityPairWeightFunction (const EntityPairWeightFunction &func)
 Allows to specify a custom entity pair weight function. More...
 
void setEntity3DCoordinatesFunction (const Entity3DCoordinatesFunction &func)
 Allows to specify the entity 3D coordinates function. More...
 
void enableDistanceToIntervalCenterRounding (bool enable)
 Allows to specify whether entity pair distances should be rounded to the nearest radius interval center. More...
 
bool distanceToIntervalsCenterRoundingEnabled () const
 Tells whether entity pair distances get rounded to the nearest radius interval centers. More...
 
void calculate (Iter beg, Iter end, Vec &rdf_code)
 Calculates the RDF code of an entity sequence. More...
 

Additional Inherited Members

- Public Types inherited from CDPL::Descr::RDFCodeCalculator< Pharm::Feature >
typedef Pharm::Feature EntityType
 
typedef std::function< double(const EntityType &, const EntityType &)> EntityPairWeightFunction
 Type of the generic functor class used to store a user-defined entity pair weight function. More...
 
typedef std::function< const Math::Vector3D &(const EntityType &)> Entity3DCoordinatesFunction
 Type of the generic functor class used to store a user-defined entity 3D coordinates function. More...
 

Detailed Description

RDFCodeCalculator implementation for the calculation of feature-centered radial distribution function (RDF) codes of pharmacophores.

FeatureRDFCodeCalculator is a specialization of RDFCodeCalculator for entities of type Pharm::Feature. The feature 3D coordinates accessor function is preset to Chem::get3DCoordinates() and the entity-pair weight function as well as any other RDF calculation parameters can be configured via the inherited setter methods of the base class.

See also
[CITB, HBMD]

Constructor & Destructor Documentation

◆ FeatureRDFCodeCalculator() [1/2]

CDPL::Descr::FeatureRDFCodeCalculator::FeatureRDFCodeCalculator ( )

Constructs the FeatureRDFCodeCalculator instance.

◆ FeatureRDFCodeCalculator() [2/2]

CDPL::Descr::FeatureRDFCodeCalculator::FeatureRDFCodeCalculator ( const Pharm::FeatureContainer cntnr,
Math::DVector rdf_code 
)

Constructs the FeatureRDFCodeCalculator instance and calculates the RDF code of the features provided by cntnr.

The calculated RDF code is stored in the vector rdf_code.

Parameters
cntnrThe container with the features for which to calculate the RDF code.
rdf_codeThe vector where to store the calculated RDF code.

Member Function Documentation

◆ calculate()

void CDPL::Descr::FeatureRDFCodeCalculator::calculate ( const Pharm::FeatureContainer cntnr,
Math::DVector rdf_code 
)

Calculates the RDF code of the features provided by cntnr.

The calculated RDF code is stored in the vector rdf_code.

Parameters
cntnrThe container with the features for which to calculate the RDF code.
rdf_codeThe vector where to store the calculated RDF code.

The documentation for this class was generated from the following file: