Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/11/17 19:36:03 (7 years ago)
Author:
pfleck
Message:

#2592

  • Renamed ScatterPlotContent to ParetoFrontScatterPlot (also renamed corresponding view).
  • Refactored ParetoFrontScatterPlotView (use ScatterPlot internally).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.MOCMAEvolutionStrategy/3.3/MOCMAEvolutionStrategy.cs

    r15177 r15203  
    245245      set { Results[CurrentFrontResultName].Value = value; }
    246246    }
    247     private ScatterPlotContent ResultsScatterPlot {
    248       get { return (ScatterPlotContent)Results[ScatterPlotResultName].Value; }
     247    private ParetoFrontScatterPlot ResultsScatterPlot {
     248      get { return (ParetoFrontScatterPlot)Results[ScatterPlotResultName].Value; }
    249249      set { Results[ScatterPlotResultName].Value = value; }
    250250    }
     
    353353      Results.Add(new Result(TimetableResultName, "Different quality meassures in a timeseries", table));
    354354      Results.Add(new Result(CurrentFrontResultName, "The current front", new DoubleMatrix()));
    355       Results.Add(new Result(ScatterPlotResultName, "A scatterplot displaying the evaluated solutions and (if available) the analytically optimal front", new ScatterPlotContent(null, null, null, 2)));
     355      Results.Add(new Result(ScatterPlotResultName, "A scatterplot displaying the evaluated solutions and (if available) the analytically optimal front", new ParetoFrontScatterPlot()));
    356356
    357357      var problem = Problem as MultiObjectiveTestFunctionProblem;
     
    361361        ResultsDifferenceBestKnownHypervolume = ResultsBestKnownHypervolume;
    362362      }
    363       ResultsScatterPlot = new ScatterPlotContent(new double[0][], new double[0][], problem.BestKnownFront.ToJaggedArray(), problem.Objectives);
     363      ResultsScatterPlot = new ParetoFrontScatterPlot(new double[0][], new double[0][], problem.BestKnownFront.ToJaggedArray(), problem.Objectives, problem.ProblemSize);
    364364    }
    365365    #endregion
     
    470470
    471471    private void Analyze() {
    472       ResultsScatterPlot = new ScatterPlotContent(solutions.Select(x => x.Fitness).ToArray(), solutions.Select(x => x.Mean.ToArray()).ToArray(), ResultsScatterPlot.ParetoFront, ResultsScatterPlot.Objectives);
     472      ResultsScatterPlot = new ParetoFrontScatterPlot(solutions.Select(x => x.Fitness).ToArray(), solutions.Select(x => x.Mean.ToArray()).ToArray(), ResultsScatterPlot.ParetoFront, ResultsScatterPlot.Objectives, ResultsScatterPlot.ProblemSize);
    473473      ResultsSolutions = solutions.Select(x => x.Mean.ToArray()).ToMatrix();
    474474
Note: See TracChangeset for help on using the changeset viewer.