Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StandartMutationFactorStrategy.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008-2011 LpzRobots development team *
3  * Joerg Weider <joergweide84 at aol dot com> (robot12) *
4  * Georg Martius <georg dot martius at web dot de> *
5  * Frank Guettler <guettler at informatik dot uni-leipzig dot de *
6  * Frank Hesse <frank at nld dot ds dot mpg dot de> *
7  * Ralf Der <ralfder at mis dot mpg dot de> *
8  * Joern Hoffmann <jhoffmann at informatik dot uni-leipzig dot de *
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  * This program is distributed in the hope that it will be useful, *
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18  * GNU General Public License for more details. *
19  * *
20  * You should have received a copy of the GNU General Public License *
21  * along with this program; if not, write to the *
22  * Free Software Foundation, Inc., *
23  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
24  * *
25  ***************************************************************************/
26 
27 #ifndef STANDARTMUTATIONFACTORSTRATEGY_H_
28 #define STANDARTMUTATIONFACTORSTRATEGY_H_
29 
30 //includes
31 #include <vector>
32 
33 //forward declarations
34 class Gen;
35 class IValue;
36 
37 //ga_tools includes
39 
40 /**
41  * this strategy calculate the mutation factor by the variance of the gens in the giving set
42  */
44 public:
45  /**
46  * default constructor
47  */
49 
50  /**
51  * default destructor
52  */
54 
55  /**
56  * gives the varianz of the gens in the set as mutation factor back.
57  * @param gene (vector<Gen*>) the set of gens
58  * @return (IValue*) the mutation factor
59  */
60  virtual IValue* calcMutationFactor(const std::vector<Gen*>& gene);
61 };
62 
63 #endif /* STANDARTMUTATIONFACTORSTRATEGY_H_ */
StandartMutationFactorStrategy()
default constructor
Definition: StandartMutationFactorStrategy.cpp:39
this strategy calculate the mutation factor by the variance of the gens in the giving set ...
Definition: StandartMutationFactorStrategy.h:43
virtual IValue * calcMutationFactor(const std::vector< Gen * > &gene)
gives the varianz of the gens in the set as mutation factor back.
Definition: StandartMutationFactorStrategy.cpp:47
The Gen class.
Definition: Gen.h:51
virtual ~StandartMutationFactorStrategy()
default destructor
Definition: StandartMutationFactorStrategy.cpp:43
This is a interface for a strategy, which is used by ValueMutationStrategy.
Definition: IMutationFactorStrategy.h:40
This class is a interface for a value which is part of a gen.
Definition: IValue.h:38