Ignore:
Timestamp:
09/09/23 15:10:49 (8 months ago)
Author:
Maciej Komosinski
Message:

fH, fB, fL: improved default parameter values, syntax coloring and code logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fB/fB_oper.h

    r821 r1273  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2023  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    1111/** @name Codes for general fB mutation types */
    1212//@{
    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 of genotype
    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
     13#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
    2020//@}
    2121
    2222/** @name Codes for fB cross over types */
    2323//@{
    24 #define FB_GENE_TRANSFER 0 ///<Relative probability of crossing over by transferring single genes from both parents to beginning of each other
    25 #define FB_CROSSING_OVER 1 ///<Relative probability of crossing over by random distribution of genes from both parents to both children
     24#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
    2626#define FB_XOVER_COUNT   2 ///<Count of crossing over types
    2727//@}
     
    4848        int crossOver(char *&g1, char *&g2, float& chg1, float& chg2);
    4949
    50         virtual const char* getSimplest() { return "5\naaazz"; }
     50        virtual const char* getSimplest() { return "3\naaazz"; }
    5151
    5252        uint32_t style(const char *geno, int pos);
Note: See TracChangeset for help on using the changeset viewer.