Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/17/21 18:56:32 (3 years ago)
Author:
gkronber
Message:

#3125: made a few small code simplifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs

    r17976 r18020  
    104104        solutions.Clear();
    105105        solutions.Add(Content); // re-add the first solution
    106         var baselineSolutions = CreateBaselineSolutions();
    107         solutions.AddRange(baselineSolutions);
     106        solutions.AddRange(CreateBaselineSolutions());
    108107        UpdateChart();
    109108      }
     
    115114        solutions.Clear();
    116115        solutions.Add(Content); // re-add the first solution
    117         var baselineSolutions = CreateBaselineSolutions();
    118         solutions.AddRange(baselineSolutions);
     116        solutions.AddRange(CreateBaselineSolutions());
    119117        UpdateChart();
    120118      }
     
    127125      if (Content != null) {
    128126        solutions.Add(Content);
    129         var baselineSolutions = CreateBaselineSolutions();
    130         solutions.AddRange(baselineSolutions);
     127        solutions.AddRange(CreateBaselineSolutions());
    131128      }
    132129      UpdateChart();
     
    168165      UpdateSeries(residuals, solutionSeries);
    169166
    170       solutionSeries.ToolTip = "Area over Curve: " + CalculateAreaOverCurve(solutionSeries);
     167      solutionSeries.ToolTip = "Area over curve: " + CalculateAreaOverCurve(solutionSeries);
    171168      solutionSeries.LegendToolTip = "Double-click to open model";
    172169      chart.Series.Add(solutionSeries);
     
    285282    protected virtual IEnumerable<IRegressionSolution> CreateBaselineSolutions() {
    286283      var constantSolution = CreateConstantSolution();
    287       if (constantSolution != null) yield return CreateConstantSolution();
     284      if (constantSolution != null) yield return constantSolution;
    288285
    289286      var linearRegressionSolution = CreateLinearSolution();
    290       if (linearRegressionSolution != null) yield return CreateLinearSolution();
     287      if (linearRegressionSolution != null) yield return linearRegressionSolution;
    291288    }
    292289
Note: See TracChangeset for help on using the changeset viewer.