RankingSelection.h

Go to the documentation of this file.
00001 
00006 #ifndef GENETIK_RANKINGSELECTION
00007 #define GENETIK_RANKINGSELECTION
00008 
00009 #include "SelectionMethod.h"
00010 
00011 namespace genetiK{
00012 
00013 class Population;
00014 class Individual;
00015 
00030 class RankingSelection : public SelectionMethod 
00031 {
00032 private:
00033         Population*                                                     population;
00034         double*                                                         ripartition;
00035         unsigned int                                                    size;
00036 public:
00039         RankingSelection(void);
00040 
00043         virtual ~RankingSelection(void);
00044 
00050         void                                                            init(Population* population);
00051 
00062         Individual*                                                     select();
00063 
00068         Individual*                                                     getBest();
00069 
00078         double                                                          phi(unsigned int rank);
00079 };
00080 
00081 }
00082 
00083 #endif

Generated on Thu Feb 23 12:20:45 2006 for GenetiK by  doxygen 1.4.6