Class: GeneGenie::ProportionalSelector

Inherits:
Object
  • Object
show all
Defined in:
lib/gene_genie/selector/proportional_selector.rb

Overview

A proportional gene selection algorithm. Genes are picked in proportion to thier normalised score.

Since:

  • 0.0.1

Instance Method Summary collapse

Instance Method Details

#call(pool) ⇒ Object

Since:

  • 0.0.1



5
6
7
# File 'lib/gene_genie/selector/proportional_selector.rb', line 5

def call(pool)
  [pick_one(pool), pick_one(pool)]
end