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