Last change
on this file since 981 was
779,
checked in by Maciej Komosinski, 7 years ago
|
Unified file names of all files involved in genetic conversions and operations so that they start with "f<format>_"
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
| 2 | // Copyright (C) 1999-2015 Maciej Komosinski and Szymon Ulatowski. |
---|
| 3 | // See LICENSE.txt for details. |
---|
[66] | 4 | |
---|
[779] | 5 | #ifndef _FTEST_OPER_H_ |
---|
| 6 | #define _FTEST_OPER_H_ |
---|
[66] | 7 | |
---|
[779] | 8 | #include "../genooperators.h" |
---|
[66] | 9 | |
---|
| 10 | /** \file */ |
---|
| 11 | |
---|
| 12 | ///A sample class for genetic operations on DNA-like genotypes |
---|
| 13 | /** |
---|
| 14 | \author Maciej Komosinski |
---|
| 15 | |
---|
[194] | 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. |
---|
[66] | 19 | |
---|
| 20 | \sa \ref geno_ftest_example |
---|
[194] | 21 | */ |
---|
[66] | 22 | |
---|
[194] | 23 | class GenoOper_fTest : public GenoOperators |
---|
[66] | 24 | { |
---|
[194] | 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); |
---|
[247] | 31 | uint32_t style(const char *g, int pos); |
---|
[194] | 32 | const char* getSimplest() { return "GATCGATTACA"; } |
---|
[66] | 33 | |
---|
[194] | 34 | double prob; |
---|
[66] | 35 | }; |
---|
| 36 | |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.