source: cpp/frams/genetics/fn/oper_fn.h @ 752

Last change on this file since 752 was 752, checked in by Maciej Komosinski, 6 years ago

Mutation in the 'fn' encoding respects custom min,max,stddev for each variable

File size: 731 bytes
RevLine 
[747]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
5#ifndef _GENOOPER_Fn_H_
6#define _GENOOPER_Fn_H_
7
8#include "../oper_fx.h"
9
10
11class GenoOper_fn : public GenoOperators
12{
13public:
14        GenoOper_fn();
15        int checkValidity(const char *, const char *genoname);
16        int validate(char *&, const char *genoname);
17        int mutate(char *&g, float& chg, int &method);
18        int crossOver(char *&g1, char *&g2, float& chg1, float& chg2);
19        uint32_t style(const char *g, int pos);
20        const char* getSimplest() { return "[0.0]"; }
21
22        double xover_proportion;
[752]23        SString mut_bound_low, mut_bound_high, mut_stddev;
[747]24};
25
26#endif
Note: See TracBrowser for help on using the repository browser.