#include <ParameterGenotypeDecoder.h>
Inheritance diagram for Teem::ParameterGenotypeDecoder:

Parameter are located in a std::map. The decode needs no step. Here is an example of settings to use this decoder:
// decoder settings { name = "Parameter" parameters { { name = "Param 1"; range = 0 1; } { name = "Param 2"; range = -1 1; } } }
Public Member Functions | |
| ParameterGenotypeDecoder (const std::string &root) | |
| Constructor. | |
| virtual | ~ParameterGenotypeDecoder () |
| Virtual destructor, do nothing. | |
| virtual Genome * | createGenome () |
| Create a genome with the appropriate size. | |
| virtual Controller * | decode (Genome *genome) |
| Decode the genome to the parameters. Returns always NULL. | |
| double | getParameter (const std::string &key) |
| Return the decoded value of a parameter. | |
Protected Attributes | |
| std::map< std::string, ParamDesc > | parameters |
| Container for the parameters. | |
Classes | |
| struct | ParamDesc |
| Internal structure to describe a parameter. More... | |
1.4.2