#include <BinaryTranscribe.h>

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. | |
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.
| 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.
| 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.
Referenced by main().
| virtual int BinaryTranscribe::GetNparams | ( | ) | [inline, virtual] |
Implements GeneralTranscribe.
Definition at line 23 of file BinaryTranscribe.h.
References basevalues.
Referenced by main().
const ttranscribed BinaryTranscribe::basevalues [protected] |
The minimum value for each parameter.
Definition at line 15 of file BinaryTranscribe.h.
Referenced by BinaryTranscribe(), GetNparams(), GrayTranscribe::GetValues(), and GetValues().
const ttranscribed BinaryTranscribe::stepsizes [protected] |
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().
const tsizev BinaryTranscribe::genesizes [protected] |
The number of bits for each parameter.
Definition at line 17 of file BinaryTranscribe.h.
Referenced by BinaryTranscribe(), GrayTranscribe::GetValues(), and GetValues().
1.5.5