Changeset 5377
- Timestamp:
- 01/25/11 18:09:47 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionSolution.cs
r5373 r5377 98 98 var laggedTreeNode = node as ILaggedTreeNode; 99 99 if (laggedTreeNode != null) lag += laggedTreeNode.Lag; 100 if (node.Symbol is Derivative) lag -= 4;100 else if (node.Symbol is Derivative) lag -= 4; 101 101 102 102 int subtreeLag = 0; -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
r5108 r5377 354 354 while (sum.SubTrees.Count > 0) sum.RemoveSubTree(0); 355 355 var groupedVarNodes = from node in subtrees.OfType<VariableTreeNode>() 356 group node by node.VariableName into g 356 let lag = (node is LaggedVariableTreeNode) ? ((LaggedVariableTreeNode)node).Lag : 0 357 group node by node.VariableName + lag into g 357 358 select g; 359 358 360 var unchangedSubTrees = subtrees.Where(t => !(t is VariableTreeNode)); 359 361 … … 429 431 while (prod.SubTrees.Count > 0) prod.RemoveSubTree(0); 430 432 var groupedVarNodes = from node in subtrees.OfType<VariableTreeNode>() 431 group node by node.VariableName into g 433 let lag = (node is LaggedVariableTreeNode) ? ((LaggedVariableTreeNode)node).Lag : 0 434 group node by node.VariableName + lag into g 432 435 orderby g.Count() 433 436 select g;
Note: See TracChangeset
for help on using the changeset viewer.