RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
GPFFCrossDock.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// GPFFCrossDock Class. GPFFCrossDock represents a fitness function
14// valid for the CGP. It is used to train with the CrossDock set.
15
16#ifndef _RBT_GPFFCROSSDOCK_H_
17#define _RBT_GPFFCROSSDOCK_H_
18
19#include "rxdock/Rand.h"
20#include "rxdock/geneticprogram/GPFitnessFunction.h"
21#include "rxdock/geneticprogram/GPGenome.h"
22#include "rxdock/geneticprogram/GPTypes.h"
23// #include <cmath>
24
25namespace rxdock {
26
27namespace geneticprogram {
28
30public:
31 static const std::string _CT;
32
33 void ReadTables(std::istream &, ReturnTypeArray &, ReturnTypeArray &);
34 double CalculateFitness(GPGenomePtr, ReturnTypeArray &, ReturnTypeArray &,
35 double, bool);
36 double CalculateFitness(GPGenomePtr, ReturnTypeArray &, ReturnTypeArray &,
37 bool);
38
39private:
40 void CreateRandomCtes(int);
41 std::vector<double> ctes;
42};
43
44// Useful typedefs
45typedef SmartPtr<GPFFCrossDock> GPFFCrossDockPtr; // Smart pointer
46typedef std::vector<GPFFCrossDockPtr>
47 GPFFCrossDockList; // Vector of smart pointers
48typedef GPFFCrossDockList::iterator GPFFCrossDockListIter;
49typedef GPFFCrossDockList::const_iterator GPFFCrossDockListConstIter;
50
51} // namespace geneticprogram
52
53} // namespace rxdock
54
55#endif //_GPFFCrossDock
Definition SmartPointer.h:48
Definition GPFFCrossDock.h:29
Definition GPFitnessFunction.h:29