LCFIVertex  0.7.2
Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
nnet::Genome Class Reference

Public Member Functions

 Genome (const int numberOfGenes, const bool setInitialRandomValues=true)
 
 Genome (const std::vector< double > &chromosome)
 
 Genome (const std::vector< double > &chromosome, const double fitness)
 
double fitness () const
 
void setFitness (double fitness)
 
std::vector< double > chromosome () const
 
void setChromosome (const std::vector< double > &newChromosome)
 
void sex (const Genome &with, Genome &baby1, Genome &baby2)
 
int numberOfGenes ()
 

Static Public Attributes

static double MutationRate
 
static double CrossoverRate
 
static double MaxMutationPerturbation
 

Protected Member Functions

void crossover (const Genome &with, Genome &baby1, Genome &baby2)
 
void mutate (Genome &theGenome)
 

Friends

NEURALNETDLL bool operator< (const Genome &lhs, const Genome &rhs)
 
NEURALNETDLL bool operator> (const Genome &lhs, const Genome &rhs)
 
NEURALNETDLL bool operator== (const Genome &lhs, const Genome &rhs)
 

Detailed Description

Definition at line 12 of file Genome.h.


The documentation for this class was generated from the following file: