diff --git a/eo/src/eoSharing.h b/eo/src/eoSharing.h index 7f177aee..771e2be9 100644 --- a/eo/src/eoSharing.h +++ b/eo/src/eoSharing.h @@ -24,7 +24,7 @@ //----------------------------------------------------------------------------- #ifndef eoSharing_h -#define eoPerf2Worth_h +#define eoSharing_h #include #include @@ -33,8 +33,7 @@ * Goldberg and Richardson's basic sharing */ -// First a helper class - // helper class to hold distances +/** A helper class for Sharing - to hold distances */ class dMatrix : public std::vector { public: @@ -71,7 +70,11 @@ }; -// template > +/** Sharing is a perf2worth class that implements + * Goldberg and Richardson's basic sharing + * see eoSharingSelect for how to use it + * and test/t-eoSharing.cpp for a sample use of both +*/ template class eoSharing : public eoPerf2Worth { @@ -107,28 +110,13 @@ class eoSharing : public eoPerf2Worth } } -// cout << "Matrice des similarités\n"; -// for (i=0; i #include -/** eoRankingSelect: select an individual by roulette wheel on its rank - * is an eoRouletteWorthSelect, i.e. a selector using a std::vector of worthes - * rather than the raw fitness (see eoSelectFromWorth.h) - * uses an internal eoRanking object which is an eoPerf2Worth +/** eoSharingSelect: select an individual by roulette wheel + * on its SHARED fitness. It is an eoRouletteWorthSelect, + * i.e. a selector using a std::vector of worthes + * rather than the raw fitness (see eoSelectFromWorth.h) + * It uses an internal eoSharing object which is + * an eoPerf2Worth */ template