Module: Aligner
- Defined in:
- lib/aligner.rb
Instance Method Summary collapse
Instance Method Details
#align_crossover ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/aligner.rb', line 2 def align_crossover optimal_alignment = Hungarian.new(crossover_map).solve returning({ :cell_1 => [], :cell_2 => [] }) do |alignment_hash| optimal_alignment.each do |tuple| alignment_hash[:cell_1] << tuple.first alignment_hash[:cell_2] << tuple.last end end end |