Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

RealGene Class Reference

#include <RealGene.h>

Inheritance diagram for RealGene:

Gene List of all members.

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)
RealGeneoperator= (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)

Constructor & Destructor Documentation

RealGene::RealGene Random random  ) 
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 18 of file RealGene.cpp.

References allele_, lowerBound_, MAX_REAL, MIN_REAL, Gene::random_, REAL, Random::rndreal(), and upperBound_.

RealGene::RealGene double  lowerBound,
double  upperBound,
Random random
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 34 of file RealGene.cpp.

References allele_, lowerBound_, Gene::random_, REAL, Random::rndreal(), and upperBound_.

RealGene::RealGene RealGene realGene  ) 
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 51 of file RealGene.cpp.

References allele_, lowerBound_, and upperBound_.

RealGene::RealGene RealGene realGene  ) 
 

Parameters:
individual The individual to copy
Constructor of the class

Definition at line 67 of file RealGene.cpp.

References allele_, lowerBound_, and upperBound_.

RealGene::~RealGene  ) 
 

Destructor of the class

Definition at line 82 of file RealGene.cpp.


Member Function Documentation

double RealGene::getRealAllele  )  [virtual]
 

Reimplemented from Gene.

Definition at line 179 of file RealGene.cpp.

References allele_.

RealGene & RealGene::operator= const RealGene realGene  ) 
 

Definition at line 187 of file RealGene.cpp.

References allele_.

int RealGene::polynomialMutation double  mutationProbability,
double  distributionIndex
[virtual]
 

Reimplemented from Gene.

Definition at line 102 of file RealGene.cpp.

References allele_, lowerBound_, Gene::random_, Random::rndreal(), and upperBound_.

int RealGene::randomMutation double  mutationProbability  )  [virtual]
 

Reimplemented from Gene.

Definition at line 85 of file RealGene.cpp.

References allele_, lowerBound_, Gene::random_, Random::rndreal(), and upperBound_.

int RealGene::uniformMutation double  mutationProbability,
double  perturbation
[virtual]
 

Reimplemented from Gene.

Definition at line 152 of file RealGene.cpp.

References allele_, lowerBound_, Gene::random_, Random::rndreal(), and upperBound_.

void RealGene::writeGenotype ofstream &  outputFile  )  [virtual]
 

Implements Gene.

Definition at line 183 of file RealGene.cpp.

References allele_.


Friends And Related Function Documentation

ostream& operator<< ostream &  outputStream,
RealGene gene
[friend]
 

Definition at line 193 of file RealGene.cpp.


Member Data Documentation

double RealGene::allele_
 

Definition at line 21 of file RealGene.h.

Referenced by getRealAllele(), operator<<(), operator=(), polynomialMutation(), randomMutation(), RealGene(), uniformMutation(), and writeGenotype().

double RealGene::lowerBound_
 

Definition at line 22 of file RealGene.h.

Referenced by polynomialMutation(), randomMutation(), RealGene(), and uniformMutation().

double RealGene::upperBound_
 

Definition at line 23 of file RealGene.h.

Referenced by polynomialMutation(), randomMutation(), RealGene(), and uniformMutation().


The documentation for this class was generated from the following files:
Generated on Wed Feb 11 10:38:04 2004 for Paes by doxygen 1.3.3