GPLIB++
|
BinaryTranscibe implements transcription for standard binary populations. More...
#include <BinaryTranscribe.h>
Public Member Functions | |
virtual ttranscribed | GetValues (const tpopmember &member) |
Implements the abstract function from GeneralTranscribe. More... | |
BinaryTranscribe (const ttranscribed &base, const ttranscribed &step, const tsizev &gene) | |
Without basevalues, stepsizes and genesizes BinaryTranscribe does not work, so we enforce their use by including them in the constructor. More... | |
virtual int | GetNparams () |
Returns the number of parameters that are encoded in the binary string. More... | |
BinaryTranscribe (const BinaryTranscribe &Old) | |
We declare a copy constructor that copies the private variables;. More... | |
BinaryTranscribe (const GeneralTranscribe &Old) | |
virtual | ~BinaryTranscribe () |
Public Member Functions inherited from gplib::GeneralTranscribe | |
GeneralTranscribe () | |
GeneralTranscribe (const GeneralTranscribe &Old) | |
virtual | ~GeneralTranscribe () |
Protected Attributes | |
const ttranscribed | basevalues |
The minimum value for each parameter. More... | |
const ttranscribed | stepsizes |
The stepsize associated to a bit change for each parameter. More... | |
const tsizev | genesizes |
The number of bits for each parameter. More... | |
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. These three vectors have to have identical size.
Definition at line 15 of file BinaryTranscribe.h.
gplib::BinaryTranscribe::BinaryTranscribe | ( | const ttranscribed & | base, |
const ttranscribed & | step, | ||
const tsizev & | gene | ||
) |
Without basevalues, stepsizes and genesizes BinaryTranscribe does not work, so we enforce their use by including them in the constructor.
Definition at line 8 of file BinaryTranscribe.cpp.
References basevalues, genesizes, and stepsizes.
gplib::BinaryTranscribe::BinaryTranscribe | ( | const BinaryTranscribe & | Old | ) |
We declare a copy constructor that copies the private variables;.
Definition at line 55 of file BinaryTranscribe.cpp.
gplib::BinaryTranscribe::BinaryTranscribe | ( | const GeneralTranscribe & | Old | ) |
|
virtual |
Definition at line 23 of file BinaryTranscribe.cpp.
|
inlinevirtual |
Returns the number of parameters that are encoded in the binary string.
Implements gplib::GeneralTranscribe.
Definition at line 31 of file BinaryTranscribe.h.
References basevalues.
|
virtual |
Implements the abstract function from GeneralTranscribe.
Implements gplib::GeneralTranscribe.
Reimplemented in gplib::GrayTranscribe.
Definition at line 27 of file BinaryTranscribe.cpp.
References basevalues, genesizes, and stepsizes.
|
protected |
The minimum value for each parameter.
Definition at line 19 of file BinaryTranscribe.h.
Referenced by BinaryTranscribe(), GetNparams(), gplib::GrayTranscribe::GetValues(), and GetValues().
|
protected |
The number of bits for each parameter.
Definition at line 23 of file BinaryTranscribe.h.
Referenced by BinaryTranscribe(), gplib::GrayTranscribe::GetValues(), and GetValues().
|
protected |
The stepsize associated to a bit change for each parameter.
Definition at line 21 of file BinaryTranscribe.h.
Referenced by BinaryTranscribe(), gplib::GrayTranscribe::GetValues(), and GetValues().