Changeset 1273 for cpp/frams/genetics/fB/fB_oper.h
- Timestamp:
- 09/09/23 15:10:49 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fB/fB_oper.h
r821 r1273 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 18Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 11 11 /** @name Codes for general fB mutation types */ 12 12 //@{ 13 #define FB_SUBSTITUTION 0 ///<Relative probability of mutation by changing single random letter in genotype (substitution)14 #define FB_INSERTION 1 ///<Relative probability of mutation by inserting characters in random place ofgenotype15 #define FB_ NCLASSINS 2 ///<Relative probability of mutation by inserting neuron class definition inrandom place of genotype16 #define FB_DELETION 3 ///<Relative probability of mutation by deleting random characters ingenotype17 #define FB_DUPLICATION 4 ///<Relative probability of mutation by copying single *gene* ofgenotype and appending it to the beginning of this genotype18 #define FB_TRANSLOCATION 5 ///<Relative probability of mutation by replacing two substrings ingenotype19 #define FB_MUT_COUNT 6 ///<Count of mutation types13 #define FB_SUBSTITUTION 0 ///<Relative probability of changing a single random character (or a neuron) in the genotype 14 #define FB_INSERTION 1 ///<Relative probability of inserting a random character in a random place of the genotype 15 #define FB_INSERTION_NEURON 2 ///<Relative probability of inserting a neuron in a random place of genotype 16 #define FB_DELETION 3 ///<Relative probability of deleting a random character (or a neuron) in the genotype 17 #define FB_DUPLICATION 4 ///<Relative probability of copying a single *gene* of the genotype and appending it to the beginning of this genotype 18 #define FB_TRANSLOCATION 5 ///<Relative probability of swapping two substrings in the genotype 19 #define FB_MUT_COUNT 6 ///<Count of mutation types 20 20 //@} 21 21 22 22 /** @name Codes for fB cross over types */ 23 23 //@{ 24 #define FB_GENE_TRANSFER 0 ///<Relative probability of crossing over by transferring single genes from both parents to beginning of each other25 #define FB_CROSSING_OVER 1 ///<Relative probability of crossing over by random distribution of genes from both parents to both children24 #define FB_GENE_TRANSFER 0 ///<Relative probability of crossing over by copying a single random gene from each parent to the beginning of the other parent 25 #define FB_CROSSING_OVER 1 ///<Relative probability of crossing over by a random distribution of genes from both parents to both children 26 26 #define FB_XOVER_COUNT 2 ///<Count of crossing over types 27 27 //@} … … 48 48 int crossOver(char *&g1, char *&g2, float& chg1, float& chg2); 49 49 50 virtual const char* getSimplest() { return " 5\naaazz"; }50 virtual const char* getSimplest() { return "3\naaazz"; } 51 51 52 52 uint32_t style(const char *geno, int pos);
Note: See TracChangeset
for help on using the changeset viewer.