- Timestamp:
- 05/30/11 17:31:53 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram
- Property svn:mergeinfo changed
/trunk/sources merged: 6201,6205,6207-6209,6223,6233-6241,6250,6252,6254-6256,6259,6262,6265,6291,6298,6302
- Property svn:mergeinfo changed
-
branches/histogram/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r5809 r6340 109 109 <ItemGroup> 110 110 <Compile Include="MultiObjective\SymbolicRegressionMultiObjectiveValidationBestSolutionAnalyzer.cs" /> 111 <Compile Include="SingleObjective\SymbolicRegressionConstantOptimizationEvaluator.cs" /> 111 112 <Compile Include="SingleObjective\SymbolicRegressionSingleObjectiveOverfittingAnalyzer.cs" /> 112 113 <Compile Include="SymbolicRegressionModel.cs" /> -
branches/histogram/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r5942 r6340 95 95 var mainBranch = startNode.GetSubtree(0); 96 96 startNode.RemoveSubtree(0); 97 var scaledMainBranch = MakeSum(MakeProduct( beta, mainBranch), alpha);97 var scaledMainBranch = MakeSum(MakeProduct(mainBranch, beta), alpha); 98 98 startNode.AddSubtree(scaledMainBranch); 99 99 } … … 104 104 return treeNode; 105 105 } else { 106 var node = (new Addition()).CreateTreeNode(); 106 var addition = new Addition(); 107 var node = addition.CreateTreeNode(); 107 108 var alphaConst = MakeConstant(alpha); 108 109 node.AddSubtree(treeNode); … … 112 113 } 113 114 114 private static ISymbolicExpressionTreeNode MakeProduct( double beta, ISymbolicExpressionTreeNode treeNode) {115 private static ISymbolicExpressionTreeNode MakeProduct(ISymbolicExpressionTreeNode treeNode, double beta) { 115 116 if (beta.IsAlmost(1.0)) { 116 117 return treeNode; 117 118 } else { 118 var node = (new Multiplication()).CreateTreeNode(); 119 var multipliciation = new Multiplication(); 120 var node = multipliciation.CreateTreeNode(); 119 121 var betaConst = MakeConstant(beta); 120 122 node.AddSubtree(treeNode); -
branches/histogram/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r6011 r6340 75 75 } 76 76 77 private newvoid RecalculateResults() {77 private void RecalculateResults() { 78 78 ModelLength = Model.SymbolicExpressionTree.Length; 79 79 ModelDepth = Model.SymbolicExpressionTree.Depth;
Note: See TracChangeset
for help on using the changeset viewer.