source: cpp/frams/genetics/fn/conv_fn.h @ 747

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

Added a new "fn" genetic representation (a vector of real numbers for custom numerical optimization)

File size: 661 bytes
Line 
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 _CONV_Fn_H_
6#define _CONV_Fn_H_
7
8#include <frams/genetics/genoconv.h>
9
10// The fn->f0 converter
11class GenoConv_fn0 : public GenoConverter
12{
13public:
14        GenoConv_fn0();
15        //~GenoConv_fn0();
16        //implementation of the GenoConverter method
17        SString convert(SString &in, MultiMap *map, bool using_checkpoints);
18
19        static vector<double> stringToVector(const char *input); //returns empty vector on error
20        static string vectorToString(const vector<double> vec);
21};
22
23#endif
Note: See TracBrowser for help on using the repository browser.