ECF 1.5
|
Classifier data structure in XCS algorithm. More...
#include <ClassifierParams.h>
Public Member Functions | |
ClassifierParams (double p, double eps, double F) | |
void | registerParameters (StateP state) |
Register genotype's parameters (called before Genotype::initialize) More... | |
virtual bool | initialize (StateP state) |
Initialize a genotype object (read parameters, perform sanity check, build data) More... | |
virtual Genotype * | copy () |
Create an identical copy of the genotype object. More... | |
virtual std::vector< CrossoverOpP > | getCrossoverOp () |
Create and return a vector of crossover operators. More... | |
virtual std::vector< MutationOpP > | getMutationOp () |
Create and return a vector of mutation operators. More... | |
virtual void | read (XMLNode &node) |
Read genotype data from XMLNode. More... | |
virtual void | write (XMLNode &node) |
Write genotype data to XMLNode. More... | |
Public Member Functions inherited from Genotype | |
virtual bool | initialize (StateP state)=0 |
Initialize a genotype object (read parameters, perform sanity check, build data) More... | |
virtual Genotype * | copy ()=0 |
Create an identical copy of the genotype object. More... | |
virtual std::vector< CrossoverOpP > | getCrossoverOp () |
Create and return a vector of crossover operators. More... | |
virtual std::vector< MutationOpP > | getMutationOp () |
Create and return a vector of mutation operators. More... | |
virtual void | registerParameters (StateP) |
Register genotype's parameters (called before Genotype::initialize) More... | |
bool | registerParameter (StateP state, std::string name, voidP value, enum ECF::type T, std::string description="") |
Register a single parameter. More... | |
voidP | getParameterValue (StateP state, std::string name) |
Read single parameter value from Registry. More... | |
bool | setParameterValue (StateP state, std::string name, voidP value) |
Write single parameter value to Registry. More... | |
bool | isParameterDefined (StateP state, std::string name) |
Check if parameter is defined in the configuration. More... | |
virtual void | read (XMLNode &)=0 |
Read genotype data from XMLNode. More... | |
virtual void | write (XMLNode &)=0 |
Write genotype data to XMLNode. More... | |
virtual uint | getGenomeSize () |
std::string | getName () |
Return genotype's name (each genotype is uniquely identified with its name). More... | |
uint | getGenotypeId () |
Return this genotype's index in individual structure. More... | |
void | setGenotypeId (uint id) |
Set genotype index in an individual. More... | |
std::string | toString () |
Output genotype to string. More... | |
Public Attributes | |
double | p_ |
double | eps_ |
double | F_ |
double | as_ |
unsigned long long int | ts_ |
double | exp_ |
int | num_ |
Additional Inherited Members | |
Protected Attributes inherited from Genotype | |
std::string | name_ |
genotype's name More... | |
uint | genotypeId_ |
this genotype's unique index in individual structure More... | |
Classifier data structure in XCS algorithm.
Definition at line 11 of file ClassifierParams.h.
|
inline |
Definition at line 24 of file ClassifierParams.h.
|
inlinevirtual |
Definition at line 35 of file ClassifierParams.h.
|
inlinevirtual |
Create an identical copy of the genotype object.
Implements Genotype.
Definition at line 58 of file ClassifierParams.h.
|
inlinevirtual |
Create and return a vector of crossover operators.
Reimplemented from Genotype.
Definition at line 64 of file ClassifierParams.h.
|
inlinevirtual |
Create and return a vector of mutation operators.
Reimplemented from Genotype.
Definition at line 69 of file ClassifierParams.h.
|
inlinevirtual |
Initialize a genotype object (read parameters, perform sanity check, build data)
Implements Genotype.
Definition at line 46 of file ClassifierParams.h.
|
inlinevirtual |
Read genotype data from XMLNode.
Implements Genotype.
Definition at line 74 of file ClassifierParams.h.
|
inlinevirtual |
Register genotype's parameters (called before Genotype::initialize)
Reimplemented from Genotype.
Definition at line 38 of file ClassifierParams.h.
|
inlinevirtual |
Write genotype data to XMLNode.
Implements Genotype.
Definition at line 104 of file ClassifierParams.h.
double ClassifierParams::as_ |
Definition at line 19 of file ClassifierParams.h.
double ClassifierParams::eps_ |
Definition at line 16 of file ClassifierParams.h.
double ClassifierParams::exp_ |
Definition at line 21 of file ClassifierParams.h.
double ClassifierParams::F_ |
Definition at line 17 of file ClassifierParams.h.
int ClassifierParams::num_ |
Definition at line 22 of file ClassifierParams.h.
double ClassifierParams::p_ |
Definition at line 15 of file ClassifierParams.h.
unsigned long long int ClassifierParams::ts_ |
Definition at line 20 of file ClassifierParams.h.