Method: EvoSynth::Individual#<=>

Defined in:
lib/evosynth/core/individual.rb

#<=>(another) ⇒ Object

If you compare individuals the semantic of “<=>” is the following:

a > b -> individual a is a better solution than individual b a < b -> individual b is a better solution than individual a a == b -> a and b have a equal fitness value



68
69
70
# File 'lib/evosynth/core/individual.rb', line 68

def <=>(another)
	compare_fitness_values(fitness, another.fitness)
end