- Timestamp:
- 07/14/17 14:01:11 (8 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15178-15180,15203,15205-15206,15221,15226,15236
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/Analyzers/ScatterPlotAnalyzer.cs
r14111 r15244 37 37 } 38 38 39 public IResultParameter< ScatterPlotContent> ScatterPlotResultParameter {40 get { return (IResultParameter< ScatterPlotContent>)Parameters["Scatterplot"]; }39 public IResultParameter<ParetoFrontScatterPlot> ScatterPlotResultParameter { 40 get { return (IResultParameter<ParetoFrontScatterPlot>)Parameters["Scatterplot"]; } 41 41 } 42 42 … … 51 51 public ScatterPlotAnalyzer() { 52 52 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("Individuals", "The individual solutions to the problem")); 53 Parameters.Add(new ResultParameter< ScatterPlotContent>("Scatterplot", "The scatterplot for the current and optimal (if known front)"));53 Parameters.Add(new ResultParameter<ParetoFrontScatterPlot>("Scatterplot", "The scatterplot for the current and optimal (if known front)")); 54 54 55 55 } … … 57 57 public override IOperation Apply() { 58 58 var qualities = QualitiesParameter.ActualValue; 59 var individuals = IndividualsParameter.ActualValue; 59 60 var testFunction = TestFunctionParameter.ActualValue; 60 61 int objectives = qualities[0].Length; 61 var individuals = IndividualsParameter.ActualValue;62 int problemSize = individuals[0].Length; 62 63 63 64 double[][] optimalFront = new double[0][]; … … 68 69 var solutionClones = individuals.Select(s => s.ToArray()).ToArray(); 69 70 70 ScatterPlotResultParameter.ActualValue = new ScatterPlotContent(qualityClones, solutionClones, optimalFront, objectives);71 ScatterPlotResultParameter.ActualValue = new ParetoFrontScatterPlot(qualityClones, solutionClones, optimalFront, objectives, problemSize); 71 72 72 73 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.