Changeset 17747 for branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalysis/AlleleFrequencyAnalyzer.cs
- Timestamp:
- 09/15/20 17:09:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalysis/AlleleFrequencyAnalyzer.cs
r17226 r17747 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HEAL.Attic;32 32 33 33 namespace HeuristicLab.Analysis { … … 165 165 if (!ResultsParameter.ActualValue.ContainsKey(Name + " Results")) { 166 166 results = new ResultCollection(); 167 ResultsParameter.ActualValue.Add(new Result(Name + " Results", results));167 ResultsParameter.ActualValue.Add(new Result(Name + " Results", "Collection of allele frequency analysis results", results)); 168 168 } else { 169 169 results = (ResultCollection)ResultsParameter.ActualValue[Name + " Results"].Value; … … 173 173 AlleleFrequencyCollection frequenciesCollection = new AlleleFrequencyCollection(frequencies); 174 174 if (!results.ContainsKey("Allele Frequencies")) 175 results.Add(new Result("Allele Frequencies", frequenciesCollection));175 results.Add(new Result("Allele Frequencies", "Displays for all alleles in the population the frequencies with which these occur.", frequenciesCollection)); 176 176 else 177 177 results["Allele Frequencies"].Value = frequenciesCollection; … … 182 182 AlleleFrequencyCollectionHistory history = new AlleleFrequencyCollectionHistory(); 183 183 history.Add(frequenciesCollection); 184 results.Add(new Result("Allele Frequencies History", history));184 results.Add(new Result("Allele Frequencies History", "Snapshots of the allele frequency of each generation.", history)); 185 185 } else { 186 186 ((AlleleFrequencyCollectionHistory)results["Allele Frequencies History"].Value).Add(frequenciesCollection); … … 215 215 allelesTable.Rows["Lost Alleles of Best Known Solution"].VisualProperties.StartIndexZero = true; 216 216 217 results.Add(new Result("Alleles", allelesTable));217 results.Add(new Result("Alleles", "Tabular summary of the allele frequency analysis", allelesTable)); 218 218 } else { 219 219 allelesTable = (DataTable)results["Alleles"].Value; … … 234 234 // store alleles values 235 235 if (!results.ContainsKey("Unique Alleles")) 236 results.Add(new Result("Unique Alleles", new DoubleValue(frequenciesCollection.Count)));236 results.Add(new Result("Unique Alleles", "The number of unique alleles currently in the population.", new DoubleValue(frequenciesCollection.Count))); 237 237 else 238 238 ((DoubleValue)results["Unique Alleles"].Value).Value = frequenciesCollection.Count; 239 239 240 240 if (!results.ContainsKey("Unique Alleles of Best Known Solution")) 241 results.Add(new Result("Unique Alleles of Best Known Solution", new DoubleValue(uniqueRelevantAllelesCount)));241 results.Add(new Result("Unique Alleles of Best Known Solution", "The number of alleles from the best-known solution that are currently present in the population.", new DoubleValue(uniqueRelevantAllelesCount))); 242 242 else 243 243 ((DoubleValue)results["Unique Alleles of Best Known Solution"].Value).Value = uniqueRelevantAllelesCount; 244 244 245 245 if (!results.ContainsKey("Fixed Alleles")) 246 results.Add(new Result("Fixed Alleles", new DoubleValue(fixedAllelesCount)));246 results.Add(new Result("Fixed Alleles", "The number of alleles, that are present in every individual of the population.", new DoubleValue(fixedAllelesCount))); 247 247 else 248 248 ((DoubleValue)results["Fixed Alleles"].Value).Value = fixedAllelesCount; 249 249 250 250 if (!results.ContainsKey("Fixed Alleles of Best Known Solution")) 251 results.Add(new Result("Fixed Alleles of Best Known Solution", new DoubleValue(fixedRelevantAllelesCount)));251 results.Add(new Result("Fixed Alleles of Best Known Solution", "The number of alles from the best-known solution that are present in every individual of the population.", new DoubleValue(fixedRelevantAllelesCount))); 252 252 else 253 253 ((DoubleValue)results["Fixed Alleles of Best Known Solution"].Value).Value = fixedRelevantAllelesCount; 254 254 255 255 if (!results.ContainsKey("Lost Alleles of Best Known Solution")) 256 results.Add(new Result("Lost Alleles of Best Known Solution", new DoubleValue(lostRelevantAllelesCount)));256 results.Add(new Result("Lost Alleles of Best Known Solution", "The number of alles from the best-known solution that are currently not present in the population.", new DoubleValue(lostRelevantAllelesCount))); 257 257 else 258 258 ((DoubleValue)results["Lost Alleles of Best Known Solution"].Value).Value = lostRelevantAllelesCount; … … 282 282 283 283 if (!results.ContainsKey("Scatter Plot")) 284 results.Add(new Result("Scatter Plot", plot));284 results.Add(new Result("Scatter Plot", "A plot that shows the correlation between number of unique alleles that an individual shares with the best-known solution and its relative quality.", plot)); 285 285 else 286 286 results["Scatter Plot"].Value = plot; 287 287 if (storeHistory) { 288 288 if (!results.ContainsKey("Scatter Plot History")) { 289 results.Add(new Result("Scatter Plot History", new ScatterPlotHistory()));289 results.Add(new Result("Scatter Plot History", "Snapshots of the scatter plot that show correlation between shared alleles with best-known solution and relative solution quality.", new ScatterPlotHistory())); 290 290 } 291 291 ((ScatterPlotHistory)results["Scatter Plot History"].Value).Add(plot); … … 300 300 301 301 if (!results.ContainsKey("Average Contained Alleles of Best Known Solution")) 302 results.Add(new Result("Average Contained Alleles of Best Known Solution", new DoubleValue(avgContainedReleventAlleles)));302 results.Add(new Result("Average Contained Alleles of Best Known Solution", "Average number of alleles that individuals share with the best-known solution.", new DoubleValue(avgContainedReleventAlleles))); 303 303 else 304 304 ((DoubleValue)results["Average Contained Alleles of Best Known Solution"].Value).Value = avgContainedReleventAlleles;
Note: See TracChangeset
for help on using the changeset viewer.