BinaryTranscribe Class Reference
[Genetic algorithm optimization]

BinaryTranscibe implements transcription for standard binary populations. More...

#include <BinaryTranscribe.h>

Inheritance diagram for BinaryTranscribe:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ttranscribed GetValues (const tpopmember &member)
 BinaryTranscribe (const ttranscribed &base, const ttranscribed &step, const tsizev &gene)
virtual int GetNparams ()
 BinaryTranscribe (const BinaryTranscribe &Old)
 We declare a copy constructor that copies the private variables;.
 BinaryTranscribe (const GeneralTranscribe &Old)
virtual ~BinaryTranscribe ()

Protected Attributes

const ttranscribed basevalues
 The minimum value for each parameter.
const ttranscribed stepsizes
 The stepsize associated to a bit change for each parameter.
const tsizev genesizes
 The number of bits for each parameter.


Detailed Description

BinaryTranscibe implements transcription for standard binary populations.

It works for simple binary string populations with the "canonic" decoding of the bit string For each parameter a basevalue, stepsize and genesize has to be specified upon construction.

Definition at line 13 of file BinaryTranscribe.h.


Constructor & Destructor Documentation

BinaryTranscribe::BinaryTranscribe ( const ttranscribed base,
const ttranscribed step,
const tsizev gene 
)

Without basevalues, stepsizes and genesizes BinaryTranscribe does not work, so we inforce their use by including them in the constructor

Definition at line 4 of file BinaryTranscribe.cpp.

References basevalues, genesizes, and stepsizes.

BinaryTranscribe::BinaryTranscribe ( const BinaryTranscribe Old  ) 

We declare a copy constructor that copies the private variables;.

Definition at line 39 of file BinaryTranscribe.cpp.

BinaryTranscribe::BinaryTranscribe ( const GeneralTranscribe Old  ) 

BinaryTranscribe::~BinaryTranscribe (  )  [virtual]

Definition at line 13 of file BinaryTranscribe.cpp.


Member Function Documentation

virtual int BinaryTranscribe::GetNparams (  )  [inline, virtual]

Implements GeneralTranscribe.

Definition at line 23 of file BinaryTranscribe.h.

References basevalues.

ttranscribed BinaryTranscribe::GetValues ( const tpopmember member  )  [virtual]

Implements the abstract function from GeneralTranscribe

Implements GeneralTranscribe.

Reimplemented in GrayTranscribe.

Definition at line 16 of file BinaryTranscribe.cpp.

References basevalues, genesizes, and stepsizes.


Member Data Documentation

The minimum value for each parameter.

Definition at line 15 of file BinaryTranscribe.h.

Referenced by BinaryTranscribe(), GetNparams(), GrayTranscribe::GetValues(), and GetValues().

The number of bits for each parameter.

Definition at line 17 of file BinaryTranscribe.h.

Referenced by BinaryTranscribe(), GrayTranscribe::GetValues(), and GetValues().

The stepsize associated to a bit change for each parameter.

Definition at line 16 of file BinaryTranscribe.h.

Referenced by BinaryTranscribe(), GrayTranscribe::GetValues(), and GetValues().


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

Generated on Tue Aug 4 16:04:17 2009 for GPLIB++ by  doxygen 1.5.8