#include <BinaryRealGene.h>
Inheritance diagram for BinaryRealGene:
Public Member Functions | |
BinaryRealGene (int numberOfBits, double lowerBound, double upperBound, Random *random) | |
Constructor. | |
BinaryRealGene (BinaryRealGene &binaryRealGene) | |
Copy constructor. | |
BinaryRealGene (BinaryRealGene *binaryRealGene) | |
Copy constructor. | |
virtual | ~BinaryRealGene () |
Destructor. | |
int | bitFlipMutation (double mutationProbability) |
double | getRealAllele () |
void | writeGenotype (ofstream &outputFile) |
BinaryRealGene & | operator= (const BinaryRealGene &gene) |
Public Attributes | |
char * | binaryAllele_ |
Binary string. | |
int | numberOfBits_ |
Number of bits of the bit string. | |
double | realAllele_ |
Real value of the allele. | |
double | lowerBound_ |
Lower bound of the allele. | |
double | upperBound_ |
Upper bound of the allele. | |
Private Member Functions | |
double | decodeToReal () |
Friends | |
ostream & | operator<< (ostream &outputStream, BinaryRealGene &gene) |
|
Definition at line 17 of file BinaryRealGene.cpp. References BINARY_REAL, binaryAllele_, decodeToReal(), lowerBound_, numberOfBits_, Gene::random_, realAllele_, Random::rnd(), and upperBound_. |
|
Definition at line 51 of file BinaryRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, realAllele_, and upperBound_. |
|
Definition at line 80 of file BinaryRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, realAllele_, and upperBound_. |
|
Destructor of the class Definition at line 105 of file BinaryRealGene.cpp. References binaryAllele_. |
|
Reimplemented from Gene. Definition at line 122 of file BinaryRealGene.cpp. References binaryAllele_, decodeToReal(), Random::flip(), numberOfBits_, Gene::random_, and realAllele_. |
|
Definition at line 163 of file BinaryRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, and upperBound_. Referenced by BinaryRealGene(), and bitFlipMutation(). |
|
Reimplemented from Gene. Definition at line 140 of file BinaryRealGene.cpp. References realAllele_. |
|
Definition at line 109 of file BinaryRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, realAllele_, and upperBound_. |
|
Implements Gene. Definition at line 144 of file BinaryRealGene.cpp. References realAllele_. |
|
Definition at line 149 of file BinaryRealGene.cpp. |
|
Definition at line 23 of file BinaryRealGene.h. Referenced by BinaryRealGene(), bitFlipMutation(), decodeToReal(), operator<<(), operator=(), and ~BinaryRealGene(). |
|
Definition at line 26 of file BinaryRealGene.h. Referenced by BinaryRealGene(), decodeToReal(), and operator=(). |
|
Definition at line 24 of file BinaryRealGene.h. Referenced by BinaryRealGene(), bitFlipMutation(), decodeToReal(), operator<<(), and operator=(). |
|
Definition at line 25 of file BinaryRealGene.h. Referenced by BinaryRealGene(), bitFlipMutation(), getRealAllele(), operator<<(), operator=(), and writeGenotype(). |
|
Definition at line 27 of file BinaryRealGene.h. Referenced by BinaryRealGene(), decodeToReal(), and operator=(). |