Last change
on this file since 147 was
66,
checked in by Maciej Komosinski, 14 years ago
|
set 'eol-style' to 'native'
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | // This file is a part of the Framsticks GenoFX library. |
---|
2 | // Copyright (C) 2002-2011 Maciej Komosinski. See LICENSE.txt for details. |
---|
3 | // Refer to http://www.framsticks.com/ for further information. |
---|
4 | |
---|
5 | #ifndef _GENO_FTEST_H_ |
---|
6 | #define _GENO_FTEST_H_ |
---|
7 | |
---|
8 | #include "param.h" |
---|
9 | #include "sstring.h" |
---|
10 | #include "geno_fx.h" |
---|
11 | |
---|
12 | /** \file */ |
---|
13 | |
---|
14 | ///A sample class for genetic operations on DNA-like genotypes |
---|
15 | /** |
---|
16 | \author Maciej Komosinski |
---|
17 | |
---|
18 | This is a very simple class to illustrate basic genetic operations. |
---|
19 | To compile this code, you may need some GDK files. |
---|
20 | For a more sophisticated example of Geno_f4 derived from Geno_fx, refer to |
---|
21 | the available source on developmental encoding and f4 genotype format. |
---|
22 | |
---|
23 | \sa \ref geno_ftest_example |
---|
24 | */ |
---|
25 | |
---|
26 | class Geno_ftest : public Geno_fx |
---|
27 | { |
---|
28 | public: |
---|
29 | Geno_ftest(); |
---|
30 | int checkValidity(const char *); |
---|
31 | int validate(char *&); |
---|
32 | int mutate(char *&g,float& chg); |
---|
33 | int crossOver(char *&g1,char *&g2,float& chg1,float& chg2); |
---|
34 | unsigned long style(const char *g, int pos); |
---|
35 | char* getSimplest() {return "GTTCAGATC";} |
---|
36 | |
---|
37 | double prob; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.