Changeset 18020 for trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
- Timestamp:
- 07/17/21 18:56:32 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
r17976 r18020 104 104 solutions.Clear(); 105 105 solutions.Add(Content); // re-add the first solution 106 var baselineSolutions = CreateBaselineSolutions(); 107 solutions.AddRange(baselineSolutions); 106 solutions.AddRange(CreateBaselineSolutions()); 108 107 UpdateChart(); 109 108 } … … 115 114 solutions.Clear(); 116 115 solutions.Add(Content); // re-add the first solution 117 var baselineSolutions = CreateBaselineSolutions(); 118 solutions.AddRange(baselineSolutions); 116 solutions.AddRange(CreateBaselineSolutions()); 119 117 UpdateChart(); 120 118 } … … 127 125 if (Content != null) { 128 126 solutions.Add(Content); 129 var baselineSolutions = CreateBaselineSolutions(); 130 solutions.AddRange(baselineSolutions); 127 solutions.AddRange(CreateBaselineSolutions()); 131 128 } 132 129 UpdateChart(); … … 168 165 UpdateSeries(residuals, solutionSeries); 169 166 170 solutionSeries.ToolTip = "Area over Curve: " + CalculateAreaOverCurve(solutionSeries);167 solutionSeries.ToolTip = "Area over curve: " + CalculateAreaOverCurve(solutionSeries); 171 168 solutionSeries.LegendToolTip = "Double-click to open model"; 172 169 chart.Series.Add(solutionSeries); … … 285 282 protected virtual IEnumerable<IRegressionSolution> CreateBaselineSolutions() { 286 283 var constantSolution = CreateConstantSolution(); 287 if (constantSolution != null) yield return CreateConstantSolution();284 if (constantSolution != null) yield return constantSolution; 288 285 289 286 var linearRegressionSolution = CreateLinearSolution(); 290 if (linearRegressionSolution != null) yield return CreateLinearSolution();287 if (linearRegressionSolution != null) yield return linearRegressionSolution; 291 288 } 292 289
Note: See TracChangeset
for help on using the changeset viewer.