#include <BinaryGrayRealGene.h>
Inheritance diagram for BinaryGrayRealGene:
Public Member Functions | |
BinaryGrayRealGene (int numberOfBits, double lowerBound, double upperBound, Random *random) | |
BinaryGrayRealGene (BinaryGrayRealGene &binaryGrayRealGene) | |
Copy constructor. | |
BinaryGrayRealGene (BinaryGrayRealGene *binaryGrayRealGene) | |
Copy constructor. | |
int | bitFlipMutation (double mutationProbability) |
double | getRealAllele () |
void | writeGenotype (ofstream &outputFile) |
BinaryGrayRealGene & | operator= (const BinaryGrayRealGene &gene) |
Public Attributes | |
char * | binaryAllele_ |
int | numberOfBits_ |
double | realAllele_ |
double | lowerBound_ |
double | upperBound_ |
Private Member Functions | |
void | decodeGene (double lowerLimit, double upperLimit) |
Friends | |
ostream & | operator<< (ostream &outputStream, BinaryGrayRealGene &gene) |
|
Definition at line 3 of file BinaryGrayRealGene.cpp. References BINARY_GRAY_REAL, binaryAllele_, lowerBound_, numberOfBits_, Gene::random_, realAllele_, Random::rnd(), Random::rndreal(), and upperBound_. |
|
Definition at line 37 of file BinaryGrayRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, realAllele_, and upperBound_. |
|
Definition at line 66 of file BinaryGrayRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, realAllele_, and upperBound_. |
|
Reimplemented from Gene. Definition at line 102 of file BinaryGrayRealGene.cpp. References binaryAllele_, Random::flip(), lowerBound_, numberOfBits_, Gene::random_, realAllele_, Random::rndreal(), and upperBound_. |
|
Definition at line 146 of file BinaryGrayRealGene.cpp. |
|
Reimplemented from Gene. Definition at line 141 of file BinaryGrayRealGene.cpp. References realAllele_. |
|
Definition at line 88 of file BinaryGrayRealGene.cpp. References binaryAllele_, lowerBound_, numberOfBits_, realAllele_, and upperBound_. |
|
Implements Gene. Definition at line 123 of file BinaryGrayRealGene.cpp. |
|
Definition at line 127 of file BinaryGrayRealGene.cpp. |
|
Definition at line 11 of file BinaryGrayRealGene.h. Referenced by BinaryGrayRealGene(), bitFlipMutation(), operator<<(), and operator=(). |
|
Definition at line 14 of file BinaryGrayRealGene.h. Referenced by BinaryGrayRealGene(), bitFlipMutation(), and operator=(). |
|
Definition at line 12 of file BinaryGrayRealGene.h. Referenced by BinaryGrayRealGene(), bitFlipMutation(), operator<<(), and operator=(). |
|
Definition at line 13 of file BinaryGrayRealGene.h. Referenced by BinaryGrayRealGene(), bitFlipMutation(), getRealAllele(), operator<<(), and operator=(). |
|
Definition at line 15 of file BinaryGrayRealGene.h. Referenced by BinaryGrayRealGene(), bitFlipMutation(), and operator=(). |