Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9320


Ignore:
Timestamp:
03/18/13 19:29:07 (11 years ago)
Author:
ascheibe
Message:

#1886 some more improvements for the statistical testing view

Location:
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.cs

    r9319 r9320  
    7575
    7676      var parameters = (from run in Content
     77                        where run.Visible
    7778                        from param in run.Parameters
    7879                        select param.Key).Distinct().ToArray();
     
    8081      foreach (var p in parameters) {
    8182        var variations = (from run in Content
    82                           where run.Parameters.ContainsKey(p) &&
     83                          where run.Visible && run.Parameters.ContainsKey(p) &&
    8384                          (run.Parameters[p] is IntValue || run.Parameters[p] is DoubleValue ||
    8485                          run.Parameters[p] is StringValue || run.Parameters[p] is BoolValue)
     
    8990        }
    9091      }
    91       if (groupComboBox.Items.Count > 0) groupComboBox.SelectedItem = groupComboBox.Items[0];
     92
     93      if (groupComboBox.Items.Count > 0) {
     94        //try to select something different than "Seed" or "Algorithm Name" as this makes no sense
     95        //and takes a long time to group
     96        List<int> possibleIndizes = new List<int>();
     97        for (int i = 0; i < groupComboBox.Items.Count; i++) {
     98          if (groupComboBox.Items[i].ToString() != "Seed"
     99            && groupComboBox.Items[i].ToString() != "Algorithm Name") {
     100            possibleIndizes.Add(i);
     101          }
     102        }
     103
     104        if (possibleIndizes.Count > 0) {
     105          groupComboBox.SelectedItem = groupComboBox.Items[possibleIndizes.First()];
     106        } else {
     107          groupComboBox.SelectedItem = groupComboBox.Items[0];
     108        }
     109      }
    92110    }
    93111
     
    101119      resultComboBox.Items.Clear();
    102120      var results = (from run in Content
     121                     where run.Visible
    103122                     from result in run.Results
    104123                     where result.Value is IntValue || result.Value is DoubleValue
     
    139158    }
    140159
    141     private List<RunCollection> GetGroups(string[] columnNames, IEnumerable<IRun> runs) {
    142       List<RunCollection> runCols = new List<RunCollection>();
     160    private List<IEnumerable<IRun>> GetGroups(string[] columnNames, IEnumerable<IRun> runs) {
     161      List<IEnumerable<IRun>> runCols = new List<IEnumerable<IRun>>();
    143162      string parameterName = (string)groupComboBox.SelectedItem;
    144163
    145164      foreach (string cn in columnNames) {
    146165        var tmpRuns = runs.Where(x => ((string)((dynamic)x.Parameters[parameterName]).Value.ToString()) == cn);
    147         runCols.Add(new RunCollection(tmpRuns));
     166        runCols.Add(tmpRuns);
    148167      }
    149168
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.designer.cs

    r9319 r9320  
    131131      this.normalDistButton.Location = new System.Drawing.Point(3, 3);
    132132      this.normalDistButton.Name = "normalDistButton";
    133       this.normalDistButton.Size = new System.Drawing.Size(155, 23);
     133      this.normalDistButton.Size = new System.Drawing.Size(166, 23);
    134134      this.normalDistButton.TabIndex = 11;
    135135      this.normalDistButton.Text = "Check for Normal Distribution";
     
    170170      // normalityDetails
    171171      //
    172       this.normalityDetails.Location = new System.Drawing.Point(164, 3);
     172      this.normalityDetails.Location = new System.Drawing.Point(175, 3);
    173173      this.normalityDetails.Name = "normalityDetails";
    174174      this.normalityDetails.Size = new System.Drawing.Size(181, 23);
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.resx

    r9319 r9320  
    166166        lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l
    167167        f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK
    168         j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALEAAACxABrSO9dQAAABl0RVh0U29mdHdhcmUA
     168        j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDwAACw8BkvkDpQAAABl0RVh0U29mdHdhcmUA
    169169        UGFpbnQuTkVUIHYzLjUuODc7gF0AAAK0SURBVDhPrZBrSNNRAMWNvkVEEBT0oY+BUAgSRBhIQmUqKYb4
    170170        KgudU1MTlj2WZUlMykdu+VhatmWKWaaITF35qCmzWoaGj81kms72dm5/3cM9TtvdX9Sob/0+XC6Hcw73
Note: See TracChangeset for help on using the changeset viewer.