Ignore:
Timestamp:
06/06/18 01:45:18 (6 years ago)
Author:
Maciej Komosinski
Message:

A more complete implementation of fB, fH, fL

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
    15#ifndef _FB_OPER_H_
    26#define _FB_OPER_H_
    37
    48#include "../genooperators.h"
     9#include <list>
    510
    611/** @name Codes for general fB mutation types */
     
    813#define FB_SUBSTITUTION  0 ///<Relative probability of mutation by changing single random letter in genotype (substitution)
    914#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
    1420//@}
    1521
     
    2531private:
    2632        bool hasStick(SString genotype);
     33        SString detokenizeSequence(std::list<SString> tokenlist);
     34        std::list<SString> tokenizeSequence(SString genotype);
    2735
    2836public:
Note: See TracChangeset for help on using the changeset viewer.