[Quantproject-developers] QuantProject/b7_Scripts/TickerSelectionTesting CandidateProperties.cs,1.3,
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-12-11 18:22:13
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13442/b7_Scripts/TickerSelectionTesting Modified Files: CandidateProperties.cs Log Message: the method public float GetReturn( int arrayElementPosition , bool isLong ) has been added Index: CandidateProperties.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/CandidateProperties.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CandidateProperties.cs 21 Oct 2005 22:15:53 -0000 1.3 --- CandidateProperties.cs 11 Dec 2005 18:21:55 -0000 1.4 *************** *** 111,114 **** --- 111,123 ---- this.fitness = 0.0; } + public float GetReturn( int arrayElementPosition , + bool isLong ) + { + float returnValue = this.arrayOfRatesOfReturn[ arrayElementPosition ]; + if ( !isLong ) + // a reverse position return is requested + returnValue = -returnValue; + return returnValue; + } } |