Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/13 13:01:53 (12 years ago)
Author:
ascheibe
Message:

#2031 ResultCorrelationView is now sortable and some minor cosmetic improvements

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/CorrelationView.cs

    r9382 r9383  
    3030
    3131namespace HeuristicLab.Analysis.Statistics {
    32   [View("Result Correlation View")]
     32  [View("Correlation View")]
    3333  [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() {
    3653      InitializeComponent();
    3754      stringConvertibleMatrixView.Minimum = -1.0;
    3855      stringConvertibleMatrixView.Maximum = 1.0;
    3956    }
    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;
    5257
    5358    protected override void OnContentChanged() {
     
    95100      }
    96101    }
     102
     103    private void calculateCorrelation_Click(object sender, EventArgs e) {
     104      RebuildCorrelationTable();
     105    }
    97106    #endregion
    98107
     
    174183      columnNames[0] = "Pearson product-moment correlation coefficient";
    175184      columnNames[1] = "Spearman's rank correlation coefficient";
    176 
    177185
    178186      var runs = Content.Where(x => x.Results.ContainsKey(resultName) && x.Visible);
     
    207215      }
    208216
     217      dt.SortableView = true;
    209218      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       Parameter
    219219    }
    220220  }
Note: See TracChangeset for help on using the changeset viewer.