Changeset 194 for cpp/frams/genetics/fT/oper_fTest.h
- Timestamp:
- 03/25/14 00:15:11 (11 years ago)
- Location:
- cpp/frams/genetics/fT
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fT/oper_fTest.h
r191 r194 1 // This file is a part of the Framsticks G enoFX library.2 // Copyright (C) 2002-201 1 Maciej Komosinski. See LICENSE.txt for details.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 3 // Refer to http://www.framsticks.com/ for further information. 4 4 5 #ifndef _GENO _FTEST_H_6 #define _GENO _FTEST_H_5 #ifndef _GENOOPER_FTEST_H_ 6 #define _GENOOPER_FTEST_H_ 7 7 8 #include "param.h" 9 #include "sstring.h" 10 #include "geno_fx.h" 8 #include "../oper_fx.h" 11 9 12 10 /** \file */ … … 16 14 \author Maciej Komosinski 17 15 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. 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. 22 19 23 20 \sa \ref geno_ftest_example 24 */ 21 */ 25 22 26 class Geno _ftest : public Geno_fx23 class GenoOper_fTest : public GenoOperators 27 24 { 28 29 Geno_ftest();30 31 32 int mutate(char *&g,float& chg);33 int crossOver(char *&g1,char *&g2,float& chg1,float& chg2);34 35 char* getSimplest() {return "GTTCAGATC";}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"; } 36 33 37 34 double prob; 38 35 }; 39 36 40 37 #endif 41
Note: See TracChangeset
for help on using the changeset viewer.