Changeset 797 for cpp/frams/genetics/fB/fB_oper.h
- Timestamp:
- 06/06/18 01:45:18 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fB/fB_oper.h
r780 r797 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. 3 // See LICENSE.txt for details. 4 1 5 #ifndef _FB_OPER_H_ 2 6 #define _FB_OPER_H_ 3 7 4 8 #include "../genooperators.h" 9 #include <list> 5 10 6 11 /** @name Codes for general fB mutation types */ … … 8 13 #define FB_SUBSTITUTION 0 ///<Relative probability of mutation by changing single random letter in genotype (substitution) 9 14 #define FB_INSERTION 1 ///<Relative probability of mutation by inserting characters in random place of genotype 10 #define FB_DELETION 2 ///<Relative probability of mutation by deleting random characters in genotype 11 #define FB_DUPLICATION 3 ///<Relative probability of mutation by copying single *gene* of genotype and appending it to the beginning of this genotype 12 #define FB_TRANSLOCATION 4 ///<Relative probability of mutation by replacing two substrings in genotype 13 #define FB_MUT_COUNT 5 ///<Count of mutation types 15 #define FB_NCLASSINS 2 ///<Relative probability of mutation by inserting neuron class definition in random place of genotype 16 #define FB_DELETION 3 ///<Relative probability of mutation by deleting random characters in genotype 17 #define FB_DUPLICATION 4 ///<Relative probability of mutation by copying single *gene* of genotype and appending it to the beginning of this genotype 18 #define FB_TRANSLOCATION 5 ///<Relative probability of mutation by replacing two substrings in genotype 19 #define FB_MUT_COUNT 6 ///<Count of mutation types 14 20 //@} 15 21 … … 25 31 private: 26 32 bool hasStick(SString genotype); 33 SString detokenizeSequence(std::list<SString> tokenlist); 34 std::list<SString> tokenizeSequence(SString genotype); 27 35 28 36 public:
Note: See TracChangeset
for help on using the changeset viewer.