Changeset 15279
- Timestamp:
- 07/22/17 23:26:18 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.FitnessLandscape/3.3/Analysis/InformationAnalyzer.cs
r13583 r15279 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 29 using System.Linq; 30 using System; 30 31 31 32 namespace HeuristicLab.Analysis.FitnessLandscape { … … 77 78 get { return (LookupParameter<DoubleValue>)Parameters["PeakDensityBasinInformation"]; } 78 79 } 80 public ILookupParameter<DataTable> InformationAnalysisParameter { 81 get { return (ILookupParameter<DataTable>)Parameters["InformationAnalysis"]; } 82 } 79 83 #endregion 80 84 … … 99 103 Parameters.Add(new LookupParameter<DoubleValue>("PeakInformationContent", "Maximum information content at any quality delta.")); 100 104 Parameters.Add(new LookupParameter<DoubleValue>("PeakDensityBasinInformation", "Maximum density basin information at any quality delta.")); 105 106 Parameters.Add(new LookupParameter<DataTable>("InformationAnalysis", "Graphical analysis of information theoretic features.")); 101 107 } 102 108 … … 145 151 AddOrUpdateResult(results, PeakDensityBasinInformationParameter.Name, peakDbi); 146 152 153 var itable = GetInformationTable(analysis); 154 AddOrUpdateResult(results, InformationAnalysisParameter.Name, itable); 147 155 return base.Apply(); 156 } 157 158 private static DataTable GetInformationTable(InformationAnalysis analysis) { 159 var dt = new DataTable("Information Analysis"); 160 var ic = new DataRow("Information Content"); 161 var pic = new DataRow("Partial Information Content"); 162 var dbi = new DataRow("Density Basin Information"); 163 var te = new DataRow("Total Entropy"); 164 var e = new DataRow("Epsilon"); 165 e.VisualProperties.SecondYAxis = true; 166 ic.Values.AddRange(analysis.InformationContent); 167 pic.Values.AddRange(analysis.PartialInformationContent); 168 dbi.Values.AddRange(analysis.DensityBasinInformation); 169 te.Values.AddRange(analysis.TotalEntropy); 170 e.Values.AddRange(analysis.QualityDelta); 171 dt.Rows.Add(ic); 172 dt.Rows.Add(pic); 173 dt.Rows.Add(dbi); 174 dt.Rows.Add(te); 175 dt.Rows.Add(e); 176 return dt; 148 177 } 149 178
Note: See TracChangeset
for help on using the changeset viewer.