Changeset 4777 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 11/12/10 01:21:11 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalyzer.cs
r4722 r4777 164 164 allelesTable = new DataTable("Alleles"); 165 165 results.Add(new Result("Alleles", allelesTable)); 166 166 167 allelesTable.Rows.Add(new DataRow("Unique Alleles")); 167 DataRowVisualProperties visualProperties = new DataRowVisualProperties(); 168 visualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Line; 169 visualProperties.SecondYAxis = true; 170 visualProperties.StartIndexZero = true; 171 allelesTable.Rows.Add(new DataRow("Unique Alleles of Best Known Solution", null, visualProperties)); 172 allelesTable.Rows.Add(new DataRow("Fixed Alleles", null, visualProperties)); 173 allelesTable.Rows.Add(new DataRow("Fixed Alleles of Best Known Solution", null, visualProperties)); 174 allelesTable.Rows.Add(new DataRow("Lost Alleles of Best Known Solution", null, visualProperties)); 168 169 allelesTable.Rows.Add(new DataRow("Unique Alleles of Best Known Solution", null)); 170 allelesTable.Rows["Unique Alleles of Best Known Solution"].VisualProperties.SecondYAxis = true; 171 allelesTable.Rows["Unique Alleles of Best Known Solution"].VisualProperties.StartIndexZero = true; 172 173 allelesTable.Rows.Add(new DataRow("Fixed Alleles", null)); 174 allelesTable.Rows["Fixed Alleles"].VisualProperties.SecondYAxis = true; 175 allelesTable.Rows["Fixed Alleles"].VisualProperties.StartIndexZero = true; 176 177 allelesTable.Rows.Add(new DataRow("Fixed Alleles of Best Known Solution", null)); 178 allelesTable.Rows["Fixed Alleles of Best Known Solution"].VisualProperties.SecondYAxis = true; 179 allelesTable.Rows["Fixed Alleles of Best Known Solution"].VisualProperties.StartIndexZero = true; 180 181 allelesTable.Rows.Add(new DataRow("Lost Alleles of Best Known Solution", null)); 182 allelesTable.Rows["Lost Alleles of Best Known Solution"].VisualProperties.SecondYAxis = true; 183 allelesTable.Rows["Lost Alleles of Best Known Solution"].VisualProperties.StartIndexZero = true; 175 184 } else { 176 185 allelesTable = (DataTable)results["Alleles"].Value; -
trunk/sources/HeuristicLab.Analysis/3.3/DataRow.cs
r4722 r4777 66 66 #endregion 67 67 68 #region Storing & Cloning69 68 [StorableConstructor] 70 69 private DataRow(bool deserializing) : base(deserializing) { } … … 74 73 this.values = new ObservableList<double>(original.values); 75 74 } 76 public override IDeepCloneable Clone(Cloner cloner) {77 return new DataRow(this, cloner);78 }79 #endregion80 75 public DataRow() 81 76 : base() { … … 93 88 values = new ObservableList<double>(); 94 89 } 95 public DataRow(string name, string description, DataRowVisualProperties visualProperties)90 public DataRow(string name, string description, IEnumerable<double> values) 96 91 : base(name, description) { 97 VisualProperties = visualProperties;98 values = new ObservableList<double>();92 VisualProperties = new DataRowVisualProperties(); 93 this.values = new ObservableList<double>(values); 99 94 } 100 95 … … 106 101 } 107 102 #endregion 103 104 public override IDeepCloneable Clone(Cloner cloner) { 105 return new DataRow(this, cloner); 106 } 108 107 109 108 public event EventHandler VisualPropertiesChanged; -
trunk/sources/HeuristicLab.Analysis/3.3/DataRowVisualProperties.cs
r4722 r4777 104 104 #endregion 105 105 106 #region Storing & Cloning107 106 [StorableConstructor] 108 107 protected DataRowVisualProperties(bool deserializing) : base() { } … … 114 113 this.startIndexZero = original.startIndexZero; 115 114 } 116 public override IDeepCloneable Clone(Cloner cloner) {117 return new DataRowVisualProperties(this, cloner);118 }119 #endregion120 115 public DataRowVisualProperties() { 121 116 chartType = DataRowChartType.Line; … … 131 126 } 132 127 128 public override IDeepCloneable Clone(Cloner cloner) { 129 return new DataRowVisualProperties(this, cloner); 130 } 131 133 132 public event PropertyChangedEventHandler PropertyChanged; 134 133 protected virtual void OnPropertyChanged(string propertyName) { -
trunk/sources/HeuristicLab.Analysis/3.3/PopulationDiversityAnalyzer.cs
r4748 r4777 171 171 minAvgMaxSimilarityDataTable = new DataTable("Average Minimum/Average/Maximum Solution Similarity"); 172 172 results.Add(new Result("Average Minimum/Average/Maximum Solution Similarity", minAvgMaxSimilarityDataTable)); 173 DataRowVisualProperties visualProperties = new DataRowVisualProperties();174 visualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Line;175 visualProperties.StartIndexZero = true;176 minAvgMaxSimilarityDataTable.Rows .Add(new DataRow("Average Minimum Solution Similarity", null, visualProperties));177 minAvgMaxSimilarityDataTable.Rows.Add(new DataRow("Average Average Solution Similarity", null, visualProperties));178 minAvgMaxSimilarityDataTable.Rows .Add(new DataRow("Average Maximum Solution Similarity", null, visualProperties));173 minAvgMaxSimilarityDataTable.Rows.Add(new DataRow("Average Minimum Solution Similarity", null)); 174 minAvgMaxSimilarityDataTable.Rows["Average Minimum Solution Similarity"].VisualProperties.StartIndexZero = true; 175 minAvgMaxSimilarityDataTable.Rows.Add(new DataRow("Average Average Solution Similarity", null)); 176 minAvgMaxSimilarityDataTable.Rows["Average Average Solution Similarity"].VisualProperties.StartIndexZero = true; 177 minAvgMaxSimilarityDataTable.Rows.Add(new DataRow("Average Maximum Solution Similarity", null)); 178 minAvgMaxSimilarityDataTable.Rows["Average Maximum Solution Similarity"].VisualProperties.StartIndexZero = true; 179 179 } else { 180 180 minAvgMaxSimilarityDataTable = (DataTable)results["Average Minimum/Average/Maximum Solution Similarity"].Value; … … 186 186 // store minimum, average, maximum similarities data table 187 187 DataTable minAvgMaxSimilaritiesDataTable = new DataTable("Minimum/Average/Maximum Solution Similarities"); 188 minAvgMaxSimilaritiesDataTable.Rows.Add(new DataRow("Minimum Solution Similarity" ));188 minAvgMaxSimilaritiesDataTable.Rows.Add(new DataRow("Minimum Solution Similarity", null, minSimilarities)); 189 189 minAvgMaxSimilaritiesDataTable.Rows["Minimum Solution Similarity"].VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Points; 190 minAvgMaxSimilaritiesDataTable.Rows["Minimum Solution Similarity"].Values.AddRange(minSimilarities); 191 minAvgMaxSimilaritiesDataTable.Rows.Add(new DataRow("Average Solution Similarity")); 190 minAvgMaxSimilaritiesDataTable.Rows.Add(new DataRow("Average Solution Similarity", null, avgSimilarities)); 192 191 minAvgMaxSimilaritiesDataTable.Rows["Average Solution Similarity"].VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Points; 193 minAvgMaxSimilaritiesDataTable.Rows["Average Solution Similarity"].Values.AddRange(avgSimilarities); 194 minAvgMaxSimilaritiesDataTable.Rows.Add(new DataRow("Maximum Solution Similarity")); 192 minAvgMaxSimilaritiesDataTable.Rows.Add(new DataRow("Maximum Solution Similarity", null, maxSimilarities)); 195 193 minAvgMaxSimilaritiesDataTable.Rows["Maximum Solution Similarity"].VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Points; 196 minAvgMaxSimilaritiesDataTable.Rows["Maximum Solution Similarity"].Values.AddRange(maxSimilarities);197 194 if (!results.ContainsKey("Minimum/Average/Maximum Solution Similarities")) { 198 195 results.Add(new Result("Minimum/Average/Maximum Solution Similarities", minAvgMaxSimilaritiesDataTable));
Note: See TracChangeset
for help on using the changeset viewer.