Chemical Data Processing Library C++ API - Version 1.1.1
PharmacophoreAutoCorr3DDescriptorCalculator.hpp
Go to the documentation of this file.
1 /*
2  * PharmacophoreAutoCorr3DDescriptorCalculator.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_DESCR_PHARMACOPHOREAUTOCORR3DDESCRIPTORCALCULATOR_HPP
30 #define CDPL_DESCR_PHARMACOPHOREAUTOCORR3DDESCRIPTORCALCULATOR_HPP
31 
32 #include <functional>
33 
34 #include "CDPL/Descr/APIPrefix.hpp"
36 #include "CDPL/Math/Vector.hpp"
37 
38 
39 namespace CDPL
40 {
41 
42  namespace Pharm
43  {
44 
45  class Feature;
46  class FeatureContainer;
47  } // namespace Pharm
48 
49  namespace Descr
50  {
51 
56  {
57 
59 
60  public:
62  typedef std::function<double(const Pharm::Feature&, const Pharm::Feature&, unsigned int)> FeaturePairWeightFunction;
63 
68 
70 
76  void setStartRadius(double start_radius);
77 
82  double getStartRadius() const;
83 
89  void setRadiusIncrement(double radius_inc);
90 
95  double getRadiusIncrement() const;
96 
106  void setNumSteps(std::size_t num_steps);
107 
112  std::size_t getNumSteps() const;
113 
121 
127 
128  void calculate(const Pharm::FeatureContainer& cntnr, Math::DVector& descr);
129 
130  private:
131  AutoCorr3DVectorCalculator autoCorrCalculator;
132  FeaturePairWeightFunction weightFunc;
133  };
134  } // namespace Descr
135 } // namespace CDPL
136 
137 #endif // CDPL_DESCR_PHARMACOPHOREAUTOCORR3DDESCRIPTORCALCULATOR_HPP
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::PharmacophoreAutoCorr3DDescriptorCalculator
PharmacophoreAutoCorr3DDescriptorCalculator()
Constructs the PharmacophoreAutoCorr3DDescriptorCalculator instance.
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::setRadiusIncrement
void setRadiusIncrement(double radius_inc)
Sets the radius step size between successive descriptor vector elements.
CDPL::Math::Vector< double >
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::setFeature3DCoordinatesFunction
void setFeature3DCoordinatesFunction(const Feature3DCoordinatesFunction &func)
Allows to specify the feature coordinates function.
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::getStartRadius
double getStartRadius() const
Returns the starting value of the radius.
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::calculate
void calculate(const Pharm::FeatureContainer &cntnr, Math::DVector &descr)
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::setFeaturePairWeightFunction
void setFeaturePairWeightFunction(const FeaturePairWeightFunction &func)
Allows to specify a custom feature pair weight function.
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::FeaturePairWeightFunction
std::function< double(const Pharm::Feature &, const Pharm::Feature &, unsigned int)> FeaturePairWeightFunction
Definition: PharmacophoreAutoCorr3DDescriptorCalculator.hpp:62
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::setStartRadius
void setStartRadius(double start_radius)
Sets the starting value of the radius.
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::PharmacophoreAutoCorr3DDescriptorCalculator
PharmacophoreAutoCorr3DDescriptorCalculator(const Pharm::FeatureContainer &cntnr, Math::DVector &descr)
CDPL::Pharm::FeatureContainer
FeatureContainer.
Definition: FeatureContainer.hpp:53
AutoCorrelation3DVectorCalculator.hpp
Definition of the class CDPL::Descr::AutoCorrelation3DVectorCalculator.
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::setNumSteps
void setNumSteps(std::size_t num_steps)
Sets the number of desired radius incrementation steps.
double
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator
PharmacophoreAutoCorr3DDescriptorCalculator.
Definition: PharmacophoreAutoCorr3DDescriptorCalculator.hpp:56
CDPL::Descr::AutoCorrelation3DVectorCalculator< Pharm::Feature >::Entity3DCoordinatesFunction
std::function< const Math::Vector3D &(const EntityType &)> Entity3DCoordinatesFunction
Type of the generic functor class used to store a user-defined entity 3D coordinates function.
Definition: AutoCorrelation3DVectorCalculator.hpp:73
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::Feature3DCoordinatesFunction
AutoCorr3DVectorCalculator::Entity3DCoordinatesFunction Feature3DCoordinatesFunction
Definition: PharmacophoreAutoCorr3DDescriptorCalculator.hpp:61
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::getNumSteps
std::size_t getNumSteps() const
Returns the number of performed radius incrementation steps.
CDPL
The namespace of the Chemical Data Processing Library.
CDPL::Descr::AutoCorrelation3DVectorCalculator< Pharm::Feature >
CDPL::Descr::PharmacophoreAutoCorr3DDescriptorCalculator::getRadiusIncrement
double getRadiusIncrement() const
Returns the radius step size between successive AutoCorr3D code elements.
APIPrefix.hpp
Definition of the preprocessor macro CDPL_DESCR_API.
CDPL::Pharm::Feature
Feature.
Definition: Feature.hpp:48
CDPL_DESCR_API
#define CDPL_DESCR_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Vector.hpp
Definition of vector data types.