Changeset 8430 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionDepthConstrainedCrossover.cs
- Timestamp:
- 08/08/12 14:04:17 (12 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab.TimeSeries-3.3
-
- Property svn:ignore
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic merged eligible /branches/Benchmarking/sources/HeuristicLab.Problems.DataAnalysis.Symbolic 6917-7005 /branches/CloningRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic 4656-4721 /branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Problems.DataAnalysis.Symbolic 5815-6180 /branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Symbolic 4458-4459,4462,4464 /branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Problems.DataAnalysis.Symbolic 5060 /branches/NET40/sources/HeuristicLab.Problems.DataAnalysis.Symbolic 5138-5162 /branches/ParallelEngine/HeuristicLab.Problems.DataAnalysis.Symbolic 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Symbolic 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Problems.DataAnalysis.Symbolic 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Problems.DataAnalysis.Symbolic 6828 /branches/SuccessProgressAnalysis/HeuristicLab.Problems.DataAnalysis.Symbolic 5370-5682 /branches/Trunk/HeuristicLab.Problems.DataAnalysis.Symbolic 6829-6865 /branches/VNS/HeuristicLab.Problems.DataAnalysis.Symbolic 5594-5752 /branches/histogram/HeuristicLab.Problems.DataAnalysis.Symbolic 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionDepthConstrainedCrossover.cs
r7521 r8430 41 41 42 42 #region Parameter properties 43 public ConstrainedValueParameter<StringValue> DepthRangeParameter {44 get { return ( ConstrainedValueParameter<StringValue>)Parameters[DepthRangeParameterName]; }43 public IConstrainedValueParameter<StringValue> DepthRangeParameter { 44 get { return (IConstrainedValueParameter<StringValue>)Parameters[DepthRangeParameterName]; } 45 45 } 46 46 #endregion … … 89 89 var depthRange = new IntRange(); 90 90 const int depthOffset = 2; // skip the first 2 levels (root + startNode) 91 switch (( int)Enum.Parse(typeof(Ranges), mode)) {92 case (int)Ranges.HighLevel:91 switch ((Ranges)Enum.Parse(typeof(Ranges), mode)) { 92 case Ranges.HighLevel: 93 93 depthRange.Start = depthOffset; // skip the first 2 levels (root + startNode) 94 94 depthRange.End = depthRange.Start + (int)Math.Round(depth * 0.25); 95 95 break; 96 case (int)Ranges.Standard:96 case Ranges.Standard: 97 97 depthRange.Start = depthOffset + (int)Math.Round(depth * 0.25); 98 98 depthRange.End = depthRange.Start + (int)Math.Round(depth * 0.5); 99 99 break; 100 case (int)Ranges.LowLevel:100 case Ranges.LowLevel: 101 101 depthRange.Start = depthOffset + (int)Math.Round(depth * 0.75); 102 102 depthRange.End = Math.Max(depthRange.Start, depth);
Note: See TracChangeset
for help on using the changeset viewer.