Changeset 13876 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/SchemaCreator.cs
- Timestamp:
- 06/06/16 19:37:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/SchemaCreator.cs
r13625 r13876 241 241 let fragment = (IFragment<ISymbolicExpressionTreeNode>)arc.Data 242 242 select fragment.Index1).Distinct().ToArray(); 243 Array.Sort(indices); 243 var levels = indices.Select(x => schema.Root.GetBranchLevel(nodes[x])).ToArray(); 244 Array.Sort(levels, indices); 245 // order nodes by their depth so that cutpoints are replaced with wildcards from the bottom up 244 246 var nodesToReplace = indices.Select(x => nodes[x]).ToList(); 245 247 for (int i = nodesToReplace.Count - 1; i >= 0; --i) {
Note: See TracChangeset
for help on using the changeset viewer.