• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

K_Distance.h

Go to the documentation of this file.
00001 
00010 #ifndef __K_DISTANCE__
00011 #define __K_DISTANCE__
00012 
00013 #include <Configuration.h>
00014 #include <Population.h>
00015 #include <Individual.h>
00016 
00022 class K_Distance {
00023 public:
00024   Population *  population_         ;
00025   int           numberOfFunctions_  ; // number of functinons of the problem
00026   double     ** distance_           ; // distance matrix
00027   double     ** kDistance_          ; // distances to the kth neighbour
00028   int           calculatedDistance_ ; // last k-distance calculated
00029 
00030   // Constructor
00031   //K_Distance() ;
00032   K_Distance(Population * population) ;
00033   
00034   // Destructor
00035   ~K_Distance();
00036   
00037   // Methods
00038   void   calculateDistanceMatrix()       ; 
00039   void   calculateKDistance(int k)       ;
00040   double getIndividualKDistance(int individual, int k) ;
00041   int    findMinimumDistanceIndividual() ;
00042   int    distanceComparison(Individual *, Individual *) ;
00043   
00044 private:
00045   double getDistance(Individual *, Individual *) ;
00046 }; // class K_Distance
00047 
00048 #endif

Our Software

orangebox Mallba

orangebox ssGA

orangebox JGDS

orangebox xxGA

orangebox JCell

orangebox MHTB

orangebox DEME

orangebox JMetal

orangebox More...

orangebox Go Back