[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WeightedPositio
Brought to you by:
glauco_1
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WeightedPositionsChoosers/Decoding In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23726/b7_Scripts/WalkForwardTesting/WalkForwardLag/WeightedPositionsChoosers/Decoding Modified Files: WFLagDecoderForFixedPortfolioWithBalancedVolatilityAndDrivingWithBalancedVolatility.cs Log Message: IntArrayManager.SubArray() has been replaced by Array.Copy() Index: WFLagDecoderForFixedPortfolioWithBalancedVolatilityAndDrivingWithBalancedVolatility.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WeightedPositionsChoosers/Decoding/WFLagDecoderForFixedPortfolioWithBalancedVolatilityAndDrivingWithBalancedVolatility.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WFLagDecoderForFixedPortfolioWithBalancedVolatilityAndDrivingWithBalancedVolatility.cs 7 Oct 2007 12:44:38 -0000 1.1 --- WFLagDecoderForFixedPortfolioWithBalancedVolatilityAndDrivingWithBalancedVolatility.cs 17 May 2008 18:11:21 -0000 1.2 *************** *** 24,28 **** using System.Data; - using QuantProject.ADT.Collections; using QuantProject.Business.Financial.Accounting; using QuantProject.Business.Strategies; --- 24,27 ---- *************** *** 69,76 **** { // this method is useless for a fixed portfolio decoder, ! // but I've written as a guideline for other decoders which // will use numberOfDrivingPositions instead of encoded.Length ! return IntArrayManager.SubArray( encoded , 0 , ! encoded.Length ); } private void decodeSignedTicker_checkParameters( --- 68,80 ---- { // this method is useless for a fixed portfolio decoder, ! // but I've written it as a guideline for other decoders which // will use numberOfDrivingPositions instead of encoded.Length ! int[] tickerRelatedGeneValuesForDrivingPositions = ! new int[ encoded.Length ]; ! Array.Copy( encoded , 0 , tickerRelatedGeneValuesForDrivingPositions , ! 0 , encoded.Length ); ! // return IntArrayManager.SubArray( encoded , 0 , ! // encoded.Length ); ! return tickerRelatedGeneValuesForDrivingPositions; } private void decodeSignedTicker_checkParameters( |