[Quantproject-developers] QuantProject/b3_Data/Selectors/ByLinearIndipendence GenomeManagerForMaxL
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2007-01-03 23:20:21
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/Selectors/ByLinearIndipendence In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4394/b3_Data/Selectors/ByLinearIndipendence Modified Files: GenomeManagerForMaxLinearIndipendenceSelector.cs Log Message: Deleted the mutationRate parameter from the IGenomeManager's Mutate method. Now classes implementing Mutate method just need to pass only the genome that has to be mutated to the method. As the mutationRate is now used only by the GeneticOptimizer, all the methods that effectively mutate genes of a given genome don't need anymore the mutation rate parameter. Index: GenomeManagerForMaxLinearIndipendenceSelector.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/Selectors/ByLinearIndipendence/GenomeManagerForMaxLinearIndipendenceSelector.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GenomeManagerForMaxLinearIndipendenceSelector.cs 7 Aug 2006 21:03:24 -0000 1.2 --- GenomeManagerForMaxLinearIndipendenceSelector.cs 3 Jan 2007 23:20:15 -0000 1.3 *************** *** 140,144 **** } ! public void Mutate(Genome genome, double mutationRate) { --- 140,144 ---- } ! public void Mutate(Genome genome) { *************** *** 152,156 **** genome.GetMaxValueForGenes(genePositionToBeMutated) + 1); } ! GenomeManagement.MutateOneGene(genome, mutationRate, genePositionToBeMutated, newValueForGene); } --- 152,156 ---- genome.GetMaxValueForGenes(genePositionToBeMutated) + 1); } ! GenomeManagement.MutateOneGene(genome, genePositionToBeMutated, newValueForGene); } |