StandartMutationFactorStrategy.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008-2011 LpzRobots development team                    *
00003  *    Joerg Weider   <joergweide84 at aol dot com> (robot12)               *
00004  *    Georg Martius  <georg dot martius at web dot de>                     *
00005  *    Frank Guettler <guettler at informatik dot uni-leipzig dot de        *
00006  *    Frank Hesse    <frank at nld dot ds dot mpg dot de>                  *
00007  *    Ralf Der       <ralfder at mis dot mpg dot de>                       *
00008  *    Joern Hoffmann <jhoffmann at informatik dot uni-leipzig dot de       *
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  *   This program is distributed in the hope that it will be useful,       *
00016  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00017  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00018  *   GNU General Public License for more details.                          *
00019  *                                                                         *
00020  *   You should have received a copy of the GNU General Public License     *
00021  *   along with this program; if not, write to the                         *
00022  *   Free Software Foundation, Inc.,                                       *
00023  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00024  *                                                                         *
00025  ***************************************************************************/
00026 
00027 #ifndef STANDARTMUTATIONFACTORSTRATEGY_H_
00028 #define STANDARTMUTATIONFACTORSTRATEGY_H_
00029 
00030 //includes
00031 #include <vector>
00032 
00033 //forward declarations
00034 class Gen;
00035 class IValue;
00036 
00037 //ga_tools includes
00038 #include "IMutationFactorStrategy.h"
00039 
00040 /**
00041  * this strategy calculate the mutation factor by the variance of the gens in the giving set
00042  */
00043 class StandartMutationFactorStrategy: public IMutationFactorStrategy {
00044 public:
00045         /**
00046          * default constructor
00047          */
00048         StandartMutationFactorStrategy();
00049 
00050         /**
00051          * default destructor
00052          */
00053         virtual ~StandartMutationFactorStrategy();
00054 
00055         /**
00056          * gives the varianz of the gens in the set as mutation factor back.
00057          * @param gene (vector<Gen*>) the set of gens
00058          * @return (IValue*) the mutation factor
00059          */
00060         virtual IValue* calcMutationFactor(const std::vector<Gen*>& gene);
00061 };
00062 
00063 #endif /* STANDARTMUTATIONFACTORSTRATEGY_H_ */
Generated on Thu Jun 28 14:45:37 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3