public String genotypeToStringForHumans() { StringBuilder s = new StringBuilder(); for (int i = 0; i < genome.length; i++) { if (genome[i]) s.append("1"); else s.append("0"); } return s.toString(); }
public String genotypeToString() { StringBuilder s = new StringBuilder(); s.append(Code.encode(genome.length)); for (int i = 0; i < genome.length; i++) s.append(Code.encode(genome[i])); return s.toString(); }