ElfPSP_ParallelABC
Protein Structure Prediction using Parallel Artificial Bee Colony Optimization
fitness_private.h
Go to the documentation of this file.
1 #ifndef _FITNESS_PRIVATE_H
2 #define _FITNESS_PRIVATE_H
3 
6 /* Header to be included just by files in the fitness/ directory
7  */
8 #include <hpchain.h>
9 #include <int3d.h>
10 
11 /**********************************
12  * FitnessCalc Procedures *
13  **********************************/
14 
15 #define MAX_MEMORY ((long int) 4*1E9) // Max total size of memory allocated
16 
18 typedef struct FitnessCalc_ {
19  const HPElem * hpChain;
20  int hpSize;
21  void *space3d;
22  int axisSize;
23  double maxGyration;
24 } FitnessCalc;
25 
27 typedef struct {
28  double x;
29  double y;
30  double z;
31 } DPoint;
32 
34 typedef struct {
35  double first;
36  double second;
37 } DPair;
38 
40 typedef struct {
41  int first;
42  int second;
43 } IPair;
44 
46 typedef struct {
47  int first;
48  int second;
49  int third;
50 } ITriple;
51 
53 typedef struct {
54  int hh, pp, hp, hb, pb, bb;
55  int collisions;
56 } BeadMeasures;
57 
58 FitnessCalc FitnessCalc_get(); // Returns the FIT_BUNDLE of the protein being assessed.
59 BeadMeasures proteinMeasures(const int3d *BBbeads, const int3d *SCbeads, const HPElem *hpChain, int hpSize);
60 
61 #endif
Holds a triple of integer values.
Definition: fitness_private.h:46
struct FitnessCalc_ FitnessCalc
Structure that holds resources to be reused throughout calls to functions.
Holds a pair of integer values.
Definition: fitness_private.h:40
Routines for mathematical manipulation of vectors and points in the integer space.
Routines for handling HP chains.
Used to return many measures to the caller.
Definition: fitness_private.h:53
char HPElem
HPChain is how we call an array of HPElem.
Definition: hpchain.h:9
Type for representing a tridimensional coordinate.
Definition: int3d.h:17
Structure that holds resources to be reused throughout calls to functions.
Definition: fitness_private.h:18
Holds a triple of double values.
Definition: fitness_private.h:27
Holds a pair of double values.
Definition: fitness_private.h:34