Last change
on this file since 201 was
194,
checked in by Maciej Komosinski, 11 years ago
|
Updated sources of the fT (ATGC sequences) genetic operators - useful as an educational example for developers; added genooper_test_fTest.cpp as a demo; removed outdated sources that now have new counterparts
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Line | |
---|
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_FTEST_H_ |
---|
6 | #define _GENOOPER_FTEST_H_ |
---|
7 | |
---|
8 | #include "../oper_fx.h" |
---|
9 | |
---|
10 | /** \file */ |
---|
11 | |
---|
12 | ///A sample class for genetic operations on DNA-like genotypes |
---|
13 | /** |
---|
14 | \author Maciej Komosinski |
---|
15 | |
---|
16 | This is a very simple class that illustrates basic genetic operations performed on ATGC sequences. |
---|
17 | For a more sophisticated and realistic examples of genetic formats and operators derived from GenoOperators, |
---|
18 | refer to the available source for genetic formats f9, fF, and f4. |
---|
19 | |
---|
20 | \sa \ref geno_ftest_example |
---|
21 | */ |
---|
22 | |
---|
23 | class GenoOper_fTest : public GenoOperators |
---|
24 | { |
---|
25 | public: |
---|
26 | GenoOper_fTest(); |
---|
27 | int checkValidity(const char *); |
---|
28 | int validate(char *&); |
---|
29 | int mutate(char *&geno, float& chg, int &method); |
---|
30 | int crossOver(char *&g1, char *&g2, float& chg1, float& chg2); |
---|
31 | unsigned long style(const char *g, int pos); |
---|
32 | const char* getSimplest() { return "GATCGATTACA"; } |
---|
33 | |
---|
34 | double prob; |
---|
35 | }; |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.