Changeset 5549 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators
- Timestamp:
- 02/22/11 19:04:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/ReplaceBranchManipulation.cs
r5529 r5549 76 76 .SelectRandom(random); 77 77 78 int maxLength = maxTreeLength - symbolicExpressionTree. Size + manipulationPoint.Node.GetSize();79 int maxDepth = maxTreeDepth - symbolicExpressionTree. Height + manipulationPoint.Node.GetHeight();78 int maxLength = maxTreeLength - symbolicExpressionTree.Length + manipulationPoint.Node.GetLength(); 79 int maxDepth = maxTreeDepth - symbolicExpressionTree.Depth + manipulationPoint.Node.GetDepth(); 80 80 // find possible symbols for the node (also considering the existing branches below it) 81 81 var allowedSymbols = (from symbol in manipulationPoint.Parent.Grammar.GetAllowedSymbols(manipulationPoint.Parent.Symbol, manipulationPoint.Index)
Note: See TracChangeset
for help on using the changeset viewer.