Method: EvoSynth::Recombinations.individual_with_shorter_genome
- Defined in:
- lib/evosynth/operators/recombinations.rb
.individual_with_shorter_genome(individual_one, individual_two) ⇒ Object
Returns individual with the shorter genome
30 31 32 33 34 35 36 |
# File 'lib/evosynth/operators/recombinations.rb', line 30 def Recombinations.individual_with_shorter_genome(individual_one, individual_two) if individual_one.genome.size > individual_one.genome.size then individual_two else individual_one end end |