C# Class GeneticsUtils, evosim

显示文件 Open project: clomax/evosim Class Usage Examples

Public Methods

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

Private Methods

Method Description
randomiseGene ( float factor ) : float

Method Details

crossover() public static method

public static crossover ( Chromosome, c1, Chromosome, c2, double rate ) : Chromosome,
c1 Chromosome,
c2 Chromosome,
rate double
return Chromosome,

mutate() public static method

public static mutate ( Chromosome, c, double rate, float factor ) : Chromosome,
c Chromosome,
rate double
factor float
return Chromosome,

similar_colour() public static method

public static similar_colour ( Chromosome, c1, Chromosome, c2 ) : float
c1 Chromosome,
c2 Chromosome,
return float