Last change
on this file since 132 was
120,
checked in by Maciej Komosinski, 11 years ago
|
added sources of the f9->f0 genetic converter
|
-
Property svn:eol-style set to
native
|
File size:
650 bytes
|
Rev | Line | |
---|
[120] | 1 | // This file is a part of the Framsticks GDK. |
---|
| 2 | // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. |
---|
| 3 | // Refer to http://www.framsticks.com/ for further information. |
---|
| 4 | |
---|
| 5 | #ifndef _GENOOPER_F9_H_ |
---|
| 6 | #define _GENOOPER_F9_H_ |
---|
| 7 | |
---|
| 8 | #include "../oper_fx.h" |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | class GenoOper_f9 : public GenoOperators |
---|
| 12 | { |
---|
| 13 | public: |
---|
| 14 | GenoOper_f9(); |
---|
| 15 | int checkValidity(const char *); |
---|
| 16 | int validate(char *&); |
---|
| 17 | int mutate(char *&g,float& chg,int &method); |
---|
| 18 | int crossOver(char *&g1,char *&g2,float& chg1,float& chg2); |
---|
| 19 | unsigned long style(const char *g, int pos); |
---|
| 20 | char* getSimplest() {return "R";} |
---|
| 21 | |
---|
| 22 | double mut_prob; //mutation probability |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.