Changeset 11769
- Timestamp:
- 01/15/15 17:25:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs
r11639 r11769 278 278 #endregion 279 279 280 ComputeSuccessRatios(genealogyGraph);280 // ComputeSuccessRatios(genealogyGraph); 281 281 } 282 282 // update qualities … … 288 288 // remove extra graph nodes (added by the instrumented operators in the case of offspring selection) 289 289 var pop = new HashSet<T>(population); 290 var discarded = genealogyGraph. Ranks[generation].Where(x => !pop.Contains(x.Data)).ToList();290 var discarded = genealogyGraph.GetByRank(generation).Where(x => !pop.Contains(x.Data)).ToList(); 291 291 for (int i = 0; i < discarded.Count; ++i) { 292 292 var v = discarded[i]; … … 344 344 VisualProperties = { ChartType = DataRowVisualProperties.DataRowChartType.Columns, StartIndexZero = true } 345 345 }; 346 successfulOffspringRatioRow.Values.Replace(genealogyGraph. Ranks[generation - 1].OrderByDescending(x => x.Quality).Select(x => x.OutDegree > 0 ? x.Weight / x.OutDegree : 0));346 successfulOffspringRatioRow.Values.Replace(genealogyGraph.GetByRank(generation).OrderByDescending(x => x.Quality).Select(x => x.OutDegree > 0 ? x.Weight / x.OutDegree : 0)); 347 347 successfulOffspringRatioTable.Rows.Add(successfulOffspringRatioRow); 348 348 successfulOffspringRatioHistory.Add(successfulOffspringRatioTable); … … 367 367 VisualProperties = { ChartType = DataRowVisualProperties.DataRowChartType.Columns, StartIndexZero = true } 368 368 }; 369 successfulOffspringValuesRow.Values.Replace(genealogyGraph. Ranks[generation - 1].OrderByDescending(x => x.Quality).Select(x => x.Weight));369 successfulOffspringValuesRow.Values.Replace(genealogyGraph.GetByRank(generation).OrderByDescending(x => x.Quality).Select(x => x.Weight)); 370 370 successfulOffspringValuesTable.Rows.Add(successfulOffspringValuesRow); 371 371 successfulOffspringAbsoluteHistory.Add(successfulOffspringValuesTable);
Note: See TracChangeset
for help on using the changeset viewer.