GPLIB++
gentypes.h
Go to the documentation of this file.
1 #ifndef GENTYPE_H
2 #define GENTYPE_H
3 #include <vector>
4 #include "VecMat.h"
5 #include <boost/function.hpp>
6 #include <map>
7 
8 namespace gplib
9  {
10  /** \addtogroup gainv Genetic algorithm optimization */
11  /* @{ */
12 
13  /*! /file Here we define some common types that are used throughout the genetic algorithm classes
14  */
15  namespace ublas = boost::numeric::ublas;
16 
17  typedef ublas::vector<double> tprobabilityv;
18  typedef ublas::vector<double> tmisfit;
19  typedef ublas::vector<double> tdata;
20  typedef ublas::vector<double> tcrowddistv;
21  typedef ublas::vector<double> ttranscribed;
22  typedef ublas::vector<bool> tpopmember;
23  typedef ublas::vector<double> tfitvec;
24  typedef gplib::rmat tfitmat;
25  typedef gplib::rmat tpopulation;
26  typedef std::vector<int> tindexv;
27  typedef ublas::vector<int> tsizev;
28  typedef std::multimap<double, int> tIndexMap;
29  typedef boost::function<const tprobabilityv &()> tProbabilityFunction;
30  typedef boost::function<const tcrowddistv &()> tDistanceFunction;
31  /* @} */
32  }
33 #endif
ublas::vector< double > ttranscribed
Definition: gentypes.h:21
boost::function< const tprobabilityv &()> tProbabilityFunction
Definition: gentypes.h:29
ublas::vector< double > tprobabilityv
Definition: gentypes.h:17
gplib::rmat tfitmat
Definition: gentypes.h:24
ublas::vector< bool > tpopmember
Definition: gentypes.h:22
boost::function< const tcrowddistv &()> tDistanceFunction
Definition: gentypes.h:30
ublas::vector< double > tmisfit
Definition: gentypes.h:18
std::vector< int > tindexv
Definition: gentypes.h:26
gplib::rmat tpopulation
Definition: gentypes.h:25
ublas::vector< double > tfitvec
Definition: gentypes.h:23
ublas::vector< double > tdata
Definition: gentypes.h:19
std::multimap< double, int > tIndexMap
Definition: gentypes.h:28
ublas::vector< int > tsizev
Definition: gentypes.h:27
ublas::vector< double > tcrowddistv
Definition: gentypes.h:20