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

RealValueGenotype class - abstract genotype class for genotypes that represent a vector of real values (Binary, FloatingPoint) More...

#include <RealValueGenotype.h>

Inheritance diagram for RealValueGenotype:
Genotype Binary::Binary FloatingPoint::FloatingPoint Tree::APGenotype Tree::APGenotype

Public Member Functions

double getLBound ()
 return lower bound of the defined interval More...
 
double getUBound ()
 return upper bound of the defined interval More...
 
virtual bool update (void)
 Update genotype after genetic material change via genetic operators. 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

std::vector< double > realValue
 vector of floating point values More...
 

Protected Attributes

double minValue_
 lower bound More...
 
double maxValue_
 upper bound More...
 
uint nDimension_
 dimensionality More...
 
- 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

RealValueGenotype class - abstract genotype class for genotypes that represent a vector of real values (Binary, FloatingPoint)

parameters:

Definition at line 19 of file RealValueGenotype.h.

Member Function Documentation

◆ getLBound()

double RealValueGenotype::getLBound ( )
inline

return lower bound of the defined interval

Definition at line 31 of file RealValueGenotype.h.

◆ getUBound()

double RealValueGenotype::getUBound ( )
inline

return upper bound of the defined interval

Definition at line 35 of file RealValueGenotype.h.

◆ update()

virtual bool RealValueGenotype::update ( void  )
inlinevirtual

Update genotype after genetic material change via genetic operators.

Reimplemented in Binary::Binary.

Definition at line 39 of file RealValueGenotype.h.

Member Data Documentation

◆ maxValue_

double RealValueGenotype::maxValue_
protected

upper bound

Definition at line 23 of file RealValueGenotype.h.

◆ minValue_

double RealValueGenotype::minValue_
protected

lower bound

Definition at line 22 of file RealValueGenotype.h.

◆ nDimension_

uint RealValueGenotype::nDimension_
protected

dimensionality

Definition at line 24 of file RealValueGenotype.h.

◆ realValue

std::vector<double> RealValueGenotype::realValue

vector of floating point values

Definition at line 28 of file RealValueGenotype.h.


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