BinaryGrayIntegerGene Class Reference
Abstract class representing a binary gray coded real gene.
#include <BinaryGrayIntegerGene.h>
Inheritance diagram for BinaryGrayIntegerGene:

Public Member Functions | |
| BinaryGrayIntegerGene (int numberOfBits, int lowerBound, int upperBound, Random *random) | |
| Constructor. | |
| BinaryGrayIntegerGene (BinaryGrayIntegerGene &BinaryGrayIntegerGene) | |
| Copy constructor. | |
| BinaryGrayIntegerGene (BinaryGrayIntegerGene *BinaryGrayIntegerGene) | |
| Copy constructor. | |
| virtual | ~BinaryGrayIntegerGene () |
| Destructor. | |
| double | decodeToInteger () |
| Decodes a binary string into an integer value. | |
| bitset< MAX_LENGTH > | grayToBinary () |
Detailed Description
Definition at line 20 of file BinaryGrayIntegerGene.h.
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Definition at line 20 of file BinaryGrayIntegerGene.cpp. |
|
|
Definition at line 35 of file BinaryGrayIntegerGene.cpp. |
|
|
Definition at line 47 of file BinaryGrayIntegerGene.cpp. |
|
|
Destructor of the class Definition at line 56 of file BinaryGrayIntegerGene.cpp. |
Member Function Documentation
|
|
Reimplemented from BinaryIntegerGene. Definition at line 70 of file BinaryGrayIntegerGene.cpp. References grayToBinary(), and BinaryIntegerGene::numberOfBits_. |
|
|
Definition at line 59 of file BinaryGrayIntegerGene.cpp. References BinaryIntegerGene::binaryAllele_, and BinaryIntegerGene::numberOfBits_. Referenced by decodeToInteger(). |
The documentation for this class was generated from the following files: