Exemple #1
0
 public static void Bool <G>(GeneticAlgorithm <G> a)
     where G : ArrayChromosome <bool>
 {
     ByElement <G, bool>(a, (rnd, c) => !c);
 }
Exemple #2
0
 public static void Bool <G>(GeneticAlgorithm <G> a)
     where G : ArrayChromosome <bool>
 {
     ByElement(a, rnd => rnd.Next(2) == 0);
 }