1#ifndef ECF_CARTESIAN_CARTESIAN_GENOTYPE_H
2#define ECF_CARTESIAN_CARTESIAN_GENOTYPE_H
7#include "CartesianGene.h"
11 typedef boost::shared_ptr<FunctionSet> FunctionSetP;
45 void read(XMLNode &xCart);
50 void write(XMLNode &xCart);
52 uint getRowNumber(uint index);
58 std::set<uint> allPossibleConnection(uint rowNumber);
80 void evaluate(
const vector<double>& inputData, vector<double>& results);
82 int get_random_int(
int from,
int to);
84 double get_random_double(
int from,
int to);
86 static double static_random_double(
int from,
int to);
104 FunctionSetP functionSet_;
108typedef boost::shared_ptr<cartesian::Cartesian> CartesianP;
uint nInputs
total number of inputs (including constants)
uint randomConnectionGenerator(uint rowNumber)
uint nVariables
number of input variables
void write(XMLNode &xCart)
void evaluate(const vector< double > &inputData, vector< double > &results)
vector< MutationOpP > getMutationOp()
std::vector< uint > getActiveTrail(uint output_number)
void read(XMLNode &xCart)
vector< CrossoverOpP > getCrossoverOp()
uint nLevelsBack
levels back parameter
uint maxArity
max number of inputs for all function nodes (gates)
bool initialize(StateP state)
uint nOutputs
number of final outputs
uint nCols
number of columns
StateP state_
local copy of state
std::vector< std::vector< uint > > getActiveTrails()
uint nFunctions
number of functions
uint nConstants
number of input constants
void registerParameters(StateP state)