Changeset 10026 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ConvexHullView.cs
- Timestamp:
- 10/04/13 17:24:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ConvexHullView.cs
r10007 r10026 22 22 using System; 23 23 using System.Linq; 24 using System.Windows.Forms;24 using HeuristicLab.Analysis.SolutionCaching.PermutationEncoding; 25 25 using HeuristicLab.Core.Views; 26 26 using HeuristicLab.Encodings.PermutationEncoding; 27 27 using HeuristicLab.MainForm; 28 using HeuristicLab.MainForm.WindowsForms;29 28 30 29 namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views { 31 30 [View("ConvexHull View")] 32 [Content(typeof(PermutationSolution Dictionary), false)]31 [Content(typeof(PermutationSolutionCache), false)] 33 32 public partial class ConvexHullView : ItemView { 34 33 public ConvexHullView() { … … 36 35 } 37 36 38 public new PermutationSolution DictionaryContent {39 get { return (PermutationSolution Dictionary)base.Content; }37 public new PermutationSolutionCache Content { 38 get { return (PermutationSolutionCache)base.Content; } 40 39 set { base.Content = value; } 41 40 } … … 51 50 var sols = Content.GetSolutionsFromGeneration(i); 52 51 53 var input = sols.Select(x => ConvertPermutationToVertex(x .GetPermutation())).ToArray();52 var input = sols.Select(x => ConvertPermutationToVertex(x)).ToArray(); 54 53 var convexHull = HyperHull.CalculateUsingSMO(input); 55 54 resultsTextBox.Text += "Nr. of Points in Generation " + i + ": " + convexHull.Count + Environment.NewLine;
Note: See TracChangeset
for help on using the changeset viewer.