source: cpp/frams/genetics/fT/fTest_oper.h @ 1258

Last change on this file since 1258 was 779, checked in by Maciej Komosinski, 7 years ago

Unified file names of all files involved in genetic conversions and operations so that they start with "f<format>_"

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
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.
4
5#ifndef _FTEST_OPER_H_
6#define _FTEST_OPER_H_
7
8#include "../genooperators.h"
9
10/** \file */
11
12///A sample class for genetic operations on DNA-like genotypes
13/**
14\author Maciej Komosinski
15
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.
19
20\sa \ref geno_ftest_example
21*/
22
23class GenoOper_fTest : public GenoOperators
24{
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);
31        uint32_t style(const char *g, int pos);
32        const char* getSimplest() { return "GATCGATTACA"; }
33
34        double prob;
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.