Logo Search packages:      
Sourcecode: gaffitter version File versions  Download package

bool GeneticAlgorithm::CopyMutate ( bool  gene  )  const [inline, protected]

Copy the given gene with some mistakes (determined by the mutate probability).

Definition at line 193 of file GeneticAlgorithm.hh.

References m_prob_mutation, and Random::Probability().

Referenced by Reproduction().

   { 
      return (Random::Probability(m_prob_mutation)) ? !gene : gene;
   }


Generated by  Doxygen 1.6.0   Back to index