Method | Description | |
---|---|---|
crossover ( Chromosome, c1, Chromosome, c2, double rate ) : Chromosome, | ||
mutate ( Chromosome, c, double rate, float factor ) : Chromosome, | ||
similar_colour ( Chromosome, c1, Chromosome, c2 ) : float |
Method | Description | |
---|---|---|
randomiseGene ( float factor ) : float |
public static crossover ( Chromosome, c1, Chromosome, c2, double rate ) : Chromosome, | ||
c1 | Chromosome, | |
c2 | Chromosome, | |
rate | double | |
return | Chromosome, |
public static mutate ( Chromosome, c, double rate, float factor ) : Chromosome, | ||
c | Chromosome, | |
rate | double | |
factor | float | |
return | Chromosome, |
public static similar_colour ( Chromosome, c1, Chromosome, c2 ) : float | ||
c1 | Chromosome, | |
c2 | Chromosome, | |
return | float |