Changeset 6387 for branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 06/08/11 10:42:57 (14 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r6234 r6387 79 79 if (startNode.GetSubtree(0).Symbol is Addition) { 80 80 var addNode = startNode.GetSubtree(0); 81 if (addNode.Subtree sCount == 2 && addNode.GetSubtree(0).Symbol is Multiplication && addNode.GetSubtree(1).Symbol is Constant) {81 if (addNode.SubtreeCount == 2 && addNode.GetSubtree(0).Symbol is Multiplication && addNode.GetSubtree(1).Symbol is Constant) { 82 82 alphaTreeNode = addNode.GetSubtree(1) as ConstantTreeNode; 83 83 var mulNode = addNode.GetSubtree(0); 84 if (mulNode.Subtree sCount == 2 && mulNode.GetSubtree(1).Symbol is Constant) {84 if (mulNode.SubtreeCount == 2 && mulNode.GetSubtree(1).Symbol is Constant) { 85 85 betaTreeNode = mulNode.GetSubtree(1) as ConstantTreeNode; 86 86 } -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r6377 r6387 71 71 72 72 protected override void OnModelChanged(EventArgs e) { 73 RecalculateResults(); 73 74 base.OnModelChanged(e); 74 RecalculateResults();75 75 } 76 76 77 protected overridevoid RecalculateResults() {77 protected new void RecalculateResults() { 78 78 ModelLength = Model.SymbolicExpressionTree.Length; 79 79 ModelDepth = Model.SymbolicExpressionTree.Depth;
Note: See TracChangeset
for help on using the changeset viewer.