Changeset 8501 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3
- Timestamp:
- 08/19/12 15:56:24 (12 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/CrossoverPerformanceAnalyzer.cs
r8499 r8501 47 47 #endregion 48 48 49 50 49 #region Parameter properties 51 50 public ILookupParameter<ResultCollection> ResultsParameter { … … 78 77 #endregion 79 78 80 ScatterPlotHelper plotHelper, childDiversityHelper, parentDiversityHelper;81 DataTableHelper performanceHelper, successHelper, equalParentsHelper;82 int cnt = 0;83 int success = 0;84 int lastGeneration = 0;85 int equalParents = 0;86 List<double> qualityPoints = new List<double>();79 private ScatterPlotHelper plotHelper, childDiversityHelper, parentDiversityHelper; 80 private DataTableHelper performanceHelper, successHelper, equalParentsHelper; 81 private int cnt = 0; 82 private int success = 0; 83 private int lastGeneration = 0; 84 private int equalParents = 0; 85 private List<double> qualityPoints = new List<double>(); 87 86 88 87 [StorableConstructor] 89 88 private CrossoverPerformanceAnalyzer(bool deserializing) : base(deserializing) { } 90 private CrossoverPerformanceAnalyzer(CrossoverPerformanceAnalyzer original, Cloner cloner) : base(original, cloner) { } 89 private CrossoverPerformanceAnalyzer(CrossoverPerformanceAnalyzer original, Cloner cloner) 90 : base(original, cloner) { 91 cnt = original.cnt; 92 success = original.success; 93 lastGeneration = original.lastGeneration; 94 equalParents = original.equalParents; 95 qualityPoints = new List<double>(original.qualityPoints); 96 plotHelper = (ScatterPlotHelper)original.plotHelper.Clone(cloner); 97 childDiversityHelper = (ScatterPlotHelper)original.childDiversityHelper.Clone(cloner); 98 parentDiversityHelper = (ScatterPlotHelper)original.parentDiversityHelper.Clone(cloner); 99 performanceHelper = (DataTableHelper)original.performanceHelper.Clone(cloner); 100 successHelper = (DataTableHelper)original.successHelper.Clone(cloner); 101 equalParentsHelper = (DataTableHelper)original.equalParentsHelper.Clone(cloner); 102 } 103 91 104 public CrossoverPerformanceAnalyzer() 92 105 : base() { -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/DataTableHelper.cs
r8498 r8501 20 20 #endregion 21 21 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 22 24 using HeuristicLab.Optimization; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 23 26 24 27 namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers { 25 public class DataTableHelper { 28 [Item("DataTableHelper", "Helper class for creating datatables.")] 29 [StorableClass] 30 public class DataTableHelper : Item { 26 31 27 32 private ResultCollection resultsCol; … … 30 35 private DataRow dtRow; 31 36 37 [StorableConstructor] 38 private DataTableHelper(bool deserializing) : base(deserializing) { } 39 private DataTableHelper(DataTableHelper original, Cloner cloner) 40 : base(original, cloner) { 41 resultsCol = original.resultsCol; 42 chartName = original.chartName; 43 dataRowName = original.dataRowName; 44 dtRow = (DataRow)original.dtRow.Clone(cloner); 45 } 46 public DataTableHelper() : base() { } 47 48 public override IDeepCloneable Clone(Cloner cloner) { 49 return new DataTableHelper(this, cloner); 50 } 32 51 33 52 public void InitializeChart(ResultCollection results, string chartName, string dataRowName) { -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/MutationPerformanceAnalyzer.cs
r8499 r8501 74 74 #endregion 75 75 76 77 ScatterPlotHelper diversityPlotHelper, qualityPlotHelper; 78 DataTableHelper avgDataTableHelper; 79 int cnt = 0, lastGeneration = 0; 80 List<double> qualityPoints = new List<double>(); 76 private ScatterPlotHelper diversityPlotHelper, qualityPlotHelper; 77 private DataTableHelper avgDataTableHelper; 78 private int cnt = 0, lastGeneration = 0; 79 private List<double> qualityPoints = new List<double>(); 81 80 82 81 [StorableConstructor] 83 82 private MutationPerformanceAnalyzer(bool deserializing) : base(deserializing) { } 84 private MutationPerformanceAnalyzer(MutationPerformanceAnalyzer original, Cloner cloner) : base(original, cloner) { } 83 private MutationPerformanceAnalyzer(MutationPerformanceAnalyzer original, Cloner cloner) 84 : base(original, cloner) { 85 diversityPlotHelper = (ScatterPlotHelper)original.diversityPlotHelper.Clone(cloner); 86 qualityPlotHelper = (ScatterPlotHelper)original.qualityPlotHelper.Clone(cloner); 87 avgDataTableHelper = (DataTableHelper)original.avgDataTableHelper.Clone(cloner); 88 cnt = original.cnt; 89 lastGeneration = original.lastGeneration; 90 qualityPoints = new List<double>(original.qualityPoints); 91 } 92 85 93 public MutationPerformanceAnalyzer() 86 94 : base() { -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/ScatterPlotHelper.cs
r8498 r8501 22 22 using System.Collections.Generic; 23 23 using HeuristicLab.Common; 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 27 26 28 namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers { 27 public class ScatterPlotHelper { 29 [Item("ScatterPlotHelper", "Helper class for creating scatter plots.")] 30 [StorableClass] 31 public class ScatterPlotHelper : Item { 28 32 29 33 private ResultCollection resultsCol; … … 36 40 get { return plot; } 37 41 private set { plot = value; } 42 } 43 44 [StorableConstructor] 45 private ScatterPlotHelper(bool deserializing) : base(deserializing) { } 46 private ScatterPlotHelper(ScatterPlotHelper original, Cloner cloner) 47 : base(original, cloner) { 48 resultsCol = original.resultsCol; 49 chartName = original.chartName; 50 xAxisTitle = original.xAxisTitle; 51 yAxisTitle = original.yAxisTitle; 52 plot = (ScatterPlot)original.plot.Clone(cloner); 53 } 54 public ScatterPlotHelper() : base() { } 55 56 public override IDeepCloneable Clone(Cloner cloner) { 57 return new ScatterPlotHelper(this, cloner); 38 58 } 39 59
Note: See TracChangeset
for help on using the changeset viewer.