source: cpp/frams/genetics/fT/oper_fTest.h @ 644

Last change on this file since 644 was 286, checked in by Maciej Komosinski, 10 years ago

Updated headers

  • Property svn:eol-style set to native
File size: 1.0 KB
RevLine 
[286]1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
[66]4
[194]5#ifndef _GENOOPER_FTEST_H_
6#define _GENOOPER_FTEST_H_
[66]7
[194]8#include "../oper_fx.h"
[66]9
10/** \file */
11
12///A sample class for genetic operations on DNA-like genotypes
13/**
14\author Maciej Komosinski
15
[194]16This is a very simple class that illustrates basic genetic operations performed on ATGC sequences.
17For a more sophisticated and realistic examples of genetic formats and operators derived from GenoOperators,
18refer to the available source for genetic formats f9, fF, and f4.
[66]19
20\sa \ref geno_ftest_example
[194]21*/
[66]22
[194]23class GenoOper_fTest : public GenoOperators
[66]24{
[194]25public:
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);
[247]31        uint32_t style(const char *g, int pos);
[194]32        const char* getSimplest() { return "GATCGATTACA"; }
[66]33
[194]34        double prob;
[66]35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.