GPLIB++
Public Member Functions | Protected Attributes | List of all members
gplib::BinaryTranscribe Class Reference

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

#include <BinaryTranscribe.h>

Inheritance diagram for gplib::BinaryTranscribe:
Inheritance graph
[legend]

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...
 

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. These three vectors have to have identical size.

Definition at line 15 of file BinaryTranscribe.h.

Constructor & Destructor Documentation

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)
gplib::BinaryTranscribe::~BinaryTranscribe ( )
virtual

Definition at line 23 of file BinaryTranscribe.cpp.

Member Function Documentation

virtual int gplib::BinaryTranscribe::GetNparams ( )
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.

ttranscribed gplib::BinaryTranscribe::GetValues ( const tpopmember member)
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.

Member Data Documentation

const ttranscribed gplib::BinaryTranscribe::basevalues
protected

The minimum value for each parameter.

Definition at line 19 of file BinaryTranscribe.h.

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

const tsizev gplib::BinaryTranscribe::genesizes
protected

The number of bits for each parameter.

Definition at line 23 of file BinaryTranscribe.h.

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

const ttranscribed gplib::BinaryTranscribe::stepsizes
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().


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