ECF 1.5
Public Member Functions | Public Attributes | List of all members
ClassifierParams Class Reference

Classifier data structure in XCS algorithm. More...

#include <ClassifierParams.h>

Inheritance diagram for ClassifierParams:
Genotype

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 Genotypecopy ()
 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 Genotypecopy ()=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...
 

Detailed Description

Classifier data structure in XCS algorithm.

Definition at line 11 of file ClassifierParams.h.

Constructor & Destructor Documentation

◆ ClassifierParams()

ClassifierParams::ClassifierParams ( double  p,
double  eps,
double  F 
)
inline

Definition at line 24 of file ClassifierParams.h.

◆ ~ClassifierParams()

virtual ClassifierParams::~ClassifierParams ( )
inlinevirtual

Definition at line 35 of file ClassifierParams.h.

Member Function Documentation

◆ copy()

virtual Genotype * ClassifierParams::copy ( )
inlinevirtual

Create an identical copy of the genotype object.

Implements Genotype.

Definition at line 58 of file ClassifierParams.h.

◆ getCrossoverOp()

virtual std::vector< CrossoverOpP > ClassifierParams::getCrossoverOp ( )
inlinevirtual

Create and return a vector of crossover operators.

Reimplemented from Genotype.

Definition at line 64 of file ClassifierParams.h.

◆ getMutationOp()

virtual std::vector< MutationOpP > ClassifierParams::getMutationOp ( )
inlinevirtual

Create and return a vector of mutation operators.

Reimplemented from Genotype.

Definition at line 69 of file ClassifierParams.h.

◆ initialize()

virtual bool ClassifierParams::initialize ( StateP  state)
inlinevirtual

Initialize a genotype object (read parameters, perform sanity check, build data)

Implements Genotype.

Definition at line 46 of file ClassifierParams.h.

◆ read()

virtual void ClassifierParams::read ( XMLNode &  )
inlinevirtual

Read genotype data from XMLNode.

Implements Genotype.

Definition at line 74 of file ClassifierParams.h.

◆ registerParameters()

void ClassifierParams::registerParameters ( StateP  )
inlinevirtual

Register genotype's parameters (called before Genotype::initialize)

Reimplemented from Genotype.

Definition at line 38 of file ClassifierParams.h.

◆ write()

virtual void ClassifierParams::write ( XMLNode &  )
inlinevirtual

Write genotype data to XMLNode.

Implements Genotype.

Definition at line 104 of file ClassifierParams.h.

Member Data Documentation

◆ as_

double ClassifierParams::as_

Definition at line 19 of file ClassifierParams.h.

◆ eps_

double ClassifierParams::eps_

Definition at line 16 of file ClassifierParams.h.

◆ exp_

double ClassifierParams::exp_

Definition at line 21 of file ClassifierParams.h.

◆ F_

double ClassifierParams::F_

Definition at line 17 of file ClassifierParams.h.

◆ num_

int ClassifierParams::num_

Definition at line 22 of file ClassifierParams.h.

◆ p_

double ClassifierParams::p_

Definition at line 15 of file ClassifierParams.h.

◆ ts_

unsigned long long int ClassifierParams::ts_

Definition at line 20 of file ClassifierParams.h.


The documentation for this class was generated from the following file: