Module: EvoSynth::Recombinations
- Defined in:
- lib/evosynth/operators/recombinations.rb,
lib/evosynth/operators/recombinations/identity.rb,
lib/evosynth/operators/recombinations/k_point_crossover.rb,
lib/evosynth/operators/recombinations/uniform_crossover.rb,
lib/evosynth/operators/recombinations/edge_recombination.rb,
lib/evosynth/operators/recombinations/one_point_crossover.rb,
lib/evosynth/operators/recombinations/arithmetic_crossover.rb,
lib/evosynth/operators/recombinations/ordered_recombination.rb,
lib/evosynth/operators/recombinations/partially_mapped_crossover.rb more...
Defined Under Namespace
Classes: ArithmeticCrossover, EdgeRecombination, Identity, KPointCrossover, OnePointCrossover, OrderedRecombination, PartiallyMappedCrossover, UniformCrossover
Class Method Summary collapse
-
.individual_with_shorter_genome(individual_one, individual_two) ⇒ Object
Returns individual with the shorter genome.
Class Method Details
permalink .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 |