Changeset 14237 for branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs
- Timestamp:
- 08/05/16 14:25:28 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs
r14185 r14237 833 833 var subtrees = new List<ISymbolicExpressionTreeNode>(sum.Subtrees); 834 834 while (sum.Subtrees.Any()) sum.RemoveSubtree(0); 835 var groupedVarNodes = from node in subtrees.OfType<VariableTreeNode >()835 var groupedVarNodes = from node in subtrees.OfType<VariableTreeNodeBase>() 836 836 let lag = (node is LaggedVariableTreeNode) ? ((LaggedVariableTreeNode)node).Lag : 0 837 837 group node by node.VariableName + lag into g 838 838 select g; 839 var unchangedSubtrees = subtrees.Where(t => !(t is VariableTreeNode ));839 var unchangedSubtrees = subtrees.Where(t => !(t is VariableTreeNodeBase)); 840 840 841 841 foreach (var variableNodeGroup in groupedVarNodes) {
Note: See TracChangeset
for help on using the changeset viewer.