RouletteWheel.h

Go to the documentation of this file.
00001 
00006 #ifndef GENETIK_ROULETTEWHEEL
00007 #define GENETIK_ROULETTEWHEEL
00008 
00009 #include "SelectionMethod.h"
00010 
00011 namespace genetiK{
00012 
00013 class Population;
00014 class Individual;
00015 
00030 class RouletteWheel : public SelectionMethod 
00031 {
00032 private:
00033         Population*                                                     population;
00034         double*                                                         fitnessRipartition;
00035         Individual*                                                     best;
00036 public:
00039         RouletteWheel(void);
00040 
00043         virtual ~RouletteWheel(void);
00044 
00050         void                                                            init(Population* population);
00051 
00062         Individual*                                                     select();
00063 
00068         Individual*                                                     getBest();
00069 };
00070 
00071 }
00072 
00073 #endif

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