Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Env Functions

uniform_crossing_over

env OPTIMUM.uniform_crossing_over(
    parent1: 'Vec < Attribute >',
    parent2: 'Vec < Attribute >',
    prob: 'f64' = 0.5,
    seed: 'Option < u64 >'
)

Arguments:

  • parent1: 'Vec < Attribute >' =>
  • parent2: 'Vec < Attribute >' =>
  • prob: 'f64' = 0.5 =>
  • seed: 'Option < u64 >' =>

Crossing over of linear genes from two parent given uniform probability

This method gives the same probability for each gene to be from one or the other parent.