Changeset 9383 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/CorrelationView.cs
- Timestamp:
- 04/19/13 13:01:53 (12 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/CorrelationView.cs
r9382 r9383 30 30 31 31 namespace HeuristicLab.Analysis.Statistics { 32 [View(" ResultCorrelation View")]32 [View("Correlation View")] 33 33 [Content(typeof(RunCollection), false)] 34 public sealed partial class ResultCorrelationView : ItemView { 35 public ResultCorrelationView() { 34 public sealed partial class CorrelationView : ItemView { 35 private enum ResultParameterType { 36 Result, 37 Parameter 38 } 39 40 public new RunCollection Content { 41 get { return (RunCollection)base.Content; } 42 set { base.Content = value; } 43 } 44 45 public override bool ReadOnly { 46 get { return true; } 47 set { /*not needed because results are always readonly */} 48 } 49 50 private Dictionary<string, ResultParameterType> resultsParameters; 51 52 public CorrelationView() { 36 53 InitializeComponent(); 37 54 stringConvertibleMatrixView.Minimum = -1.0; 38 55 stringConvertibleMatrixView.Maximum = 1.0; 39 56 } 40 41 public new RunCollection Content {42 get { return (RunCollection)base.Content; }43 set { base.Content = value; }44 }45 46 public override bool ReadOnly {47 get { return true; }48 set { /*not needed because results are always readonly */}49 }50 51 private Dictionary<string, ResultParameterType> resultsParameters;52 57 53 58 protected override void OnContentChanged() { … … 95 100 } 96 101 } 102 103 private void calculateCorrelation_Click(object sender, EventArgs e) { 104 RebuildCorrelationTable(); 105 } 97 106 #endregion 98 107 … … 174 183 columnNames[0] = "Pearson product-moment correlation coefficient"; 175 184 columnNames[1] = "Spearman's rank correlation coefficient"; 176 177 185 178 186 var runs = Content.Where(x => x.Results.ContainsKey(resultName) && x.Visible); … … 207 215 } 208 216 217 dt.SortableView = true; 209 218 stringConvertibleMatrixView.Content = dt; 210 }211 212 private void calculateCorrelation_Click(object sender, EventArgs e) {213 RebuildCorrelationTable();214 }215 216 private enum ResultParameterType {217 Result,218 Parameter219 219 } 220 220 }
Note: See TracChangeset
for help on using the changeset viewer.