[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardMultiOneRank WFMul
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2007-01-03 23:20:44
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardMultiOneRank In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4394/b7_Scripts/WalkForwardTesting/WalkForwardMultiOneRank Modified Files: WFMultiOneRankGenomeManager.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: WFMultiOneRankGenomeManager.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardMultiOneRank/WFMultiOneRankGenomeManager.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** WFMultiOneRankGenomeManager.cs 21 Aug 2006 19:49:36 -0000 1.5 --- WFMultiOneRankGenomeManager.cs 3 Jan 2007 23:20:06 -0000 1.6 *************** *** 211,215 **** } ! public void Mutate( Genome genome , double mutationRate ) { // in this implementation only one gene is mutated --- 211,215 ---- } ! public void Mutate( Genome genome ) { // in this implementation only one gene is mutated *************** *** 230,234 **** genome.GetMaxValueForGenes( genePositionToBeMutated ) + 1 ); } ! GenomeManagement.MutateOneGene( genome , mutationRate , genePositionToBeMutated , newValueForGene ); } --- 230,234 ---- genome.GetMaxValueForGenes( genePositionToBeMutated ) + 1 ); } ! GenomeManagement.MutateOneGene( genome , genePositionToBeMutated , newValueForGene ); } |