#include <RealGene.h>
Inheritance diagram for RealGene:
Public Member Functions | |
RealGene (Random *random) | |
Constructor. | |
RealGene (double lowerBound, double upperBound, Random *random) | |
Constructor. | |
RealGene (RealGene &realgene) | |
Copy constructor. | |
RealGene (RealGene *realGene) | |
Copy constructor. | |
~RealGene () | |
Destructor. | |
int | randomMutation (double mutationProbability) |
int | polynomialMutation (double mutationProbability, double distributionIndex) |
int | uniformMutation (double mutationProbability, double perturbation) |
double | getRealAllele () |
void | writeGenotype (ofstream &outputFile) |
RealGene & | operator= (const RealGene &realGene) |
Public Attributes | |
double | allele_ |
Allele. | |
double | lowerBound_ |
Lower bound of the allele. | |
double | upperBound_ |
Upper bound of the allele. | |
Friends | |
ostream & | operator<< (ostream &outputStream, RealGene &gene) |
|
Definition at line 18 of file RealGene.cpp. References allele_, lowerBound_, MAX_REAL, MIN_REAL, Gene::random_, REAL, Random::rndreal(), and upperBound_. |
|
Definition at line 34 of file RealGene.cpp. References allele_, lowerBound_, Gene::random_, REAL, Random::rndreal(), and upperBound_. |
|
Definition at line 51 of file RealGene.cpp. References allele_, lowerBound_, and upperBound_. |
|
Definition at line 67 of file RealGene.cpp. References allele_, lowerBound_, and upperBound_. |
|
Destructor of the class Definition at line 82 of file RealGene.cpp. |
|
Reimplemented from Gene. Definition at line 179 of file RealGene.cpp. References allele_. |
|
Definition at line 187 of file RealGene.cpp. References allele_. |
|
Reimplemented from Gene. Definition at line 102 of file RealGene.cpp. References allele_, lowerBound_, Gene::random_, Random::rndreal(), and upperBound_. |
|
Reimplemented from Gene. Definition at line 85 of file RealGene.cpp. References allele_, lowerBound_, Gene::random_, Random::rndreal(), and upperBound_. |
|
Reimplemented from Gene. Definition at line 152 of file RealGene.cpp. References allele_, lowerBound_, Gene::random_, Random::rndreal(), and upperBound_. |
|
Implements Gene. Definition at line 183 of file RealGene.cpp. References allele_. |
|
Definition at line 193 of file RealGene.cpp. |
|
Definition at line 21 of file RealGene.h. Referenced by getRealAllele(), operator<<(), operator=(), polynomialMutation(), randomMutation(), RealGene(), uniformMutation(), and writeGenotype(). |
|
Definition at line 22 of file RealGene.h. Referenced by polynomialMutation(), randomMutation(), RealGene(), and uniformMutation(). |
|
Definition at line 23 of file RealGene.h. Referenced by polynomialMutation(), randomMutation(), RealGene(), and uniformMutation(). |