Last change
on this file since 785 was
780,
checked in by Maciej Komosinski, 7 years ago
|
Added sources for genetic encodings fB, fH, fL
|
File size:
760 bytes
|
Line | |
---|
1 | #ifndef _FB_CONV_H_ |
---|
2 | #define _FB_CONV_H_ |
---|
3 | |
---|
4 | #include <frams/genetics/genoconv.h> |
---|
5 | #include "../fH/fH_general.h" |
---|
6 | |
---|
7 | class GenoConv_fBH : public GenoConverter |
---|
8 | { |
---|
9 | private: |
---|
10 | double convertCharacterTo01(char c); |
---|
11 | double convertCharacterToWeight(char c); |
---|
12 | static fH_Handle* convertCharacterToHandle(char c, int dims, int start, int end, std::vector<IRange> ranges[3]); |
---|
13 | int processNextLetter(fH_Builder &creature, fH_Handle *&currhandle, Param &par, SString gene, int &propindex, int &i, std::vector<IRange> ranges[3]); |
---|
14 | |
---|
15 | public: |
---|
16 | GenoConv_fBH() :GenoConverter() |
---|
17 | { |
---|
18 | name = "Biological encoding"; |
---|
19 | |
---|
20 | in_format = 'B'; |
---|
21 | out_format = 'H'; |
---|
22 | mapsupport = 1; |
---|
23 | } |
---|
24 | SString convert(SString &i, MultiMap *map, bool using_checkpoints); |
---|
25 | ~GenoConv_fBH() {}; |
---|
26 | }; |
---|
27 | |
---|
28 | #endif //_FB_CONV_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.