Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9333


Ignore:
Timestamp:
03/26/13 12:09:20 (11 years ago)
Author:
ascheibe
Message:

#1886 improved run collection views

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

Legend:

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

    r9196 r9333  
    133133        this.Invoke(new EventHandler(run_Changed), sender, e);
    134134      else {
    135         IRun run = (IRun)sender;
    136         UpdateRun(run);
     135        if (!Content.UpdateOfRunsInProgress) {
     136          IRun run = (IRun)sender;
     137          UpdateRun(run);
     138        }
    137139      }
    138140    }
     
    262264      StringMatrix sm = (StringMatrix)stringConvertibleMatrixView.Content;
    263265
     266      Content.UpdateOfRunsInProgress = true;
    264267      for (int i = 0; i < runs.Count(); i++) {
    265268        IRun run = runs.ElementAt(i);
     
    271274        }
    272275      }
     276      Content.UpdateOfRunsInProgress = false;
    273277      //update column names of run collection
    274278      Content.Modify();
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/SampleSizeDetermination.cs

    r9330 r9333  
    3030    /// </summary>
    3131    /// <param name="samples">The pilot sample.</param>
    32     /// <param name="e">Precision. Default precision is 1%. </param>
     32    /// <param name="e">Precision. </param>
    3333    /// <param name="conf">Confidence Interval.</param>
    3434    /// <returns>Number of required samples for the given confidence interval and precision. </returns>
    35     public static int DetermineSampleSizeByEstimatingMean(double[] samples, double e = 0.01, double conf = 0.95) {
     35    public static int DetermineSampleSizeByEstimatingMean(double[] samples, double e, double conf = 0.95) {
    3636      if (e < 0) throw new ArgumentException("e needs to be a positive number.");
    3737      if (conf < 0 || conf > 1) throw new ArgumentException("The confidence Interval must be between zero and one.");
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.cs

    r9329 r9333  
    3131using HeuristicLab.MainForm;
    3232using HeuristicLab.Optimization;
     33using HeuristicLab.Optimization.Views;
    3334
    3435namespace HeuristicLab.Analysis.AlgorithmBehavior.Views {
     
    255256      }
    256257    }
     258
     259    private void openBoxPlotToolStripMenuItem_Click(object sender, EventArgs e) {
     260      RunCollectionBoxPlotView boxplotView = new RunCollectionBoxPlotView();
     261      boxplotView.Content = Content;
     262      // TODO: enable as soon as we move to HeuristicLab.Optimization.Views
     263      // boxplotView.xAxisComboBox.SelectedItem = xAxisComboBox.SelectedItem;
     264      // boxplotView.yAxisComboBox.SelectedItem = yAxisComboBox.SelectedItem;
     265      boxplotView.Show();
     266    }
    257267  }
    258268}
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.designer.cs

    r9320 r9333  
    4848      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StatisticalTestingView));
    4949      this.stringConvertibleMatrixView = new HeuristicLab.Data.Views.StringConvertibleMatrixView();
     50      this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     51      this.openBoxPlotToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    5052      this.groupByLabel = new System.Windows.Forms.Label();
    5153      this.label1 = new System.Windows.Forms.Label();
     
    6264      this.splitContainer1 = new System.Windows.Forms.SplitContainer();
    6365      this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     66      this.contextMenuStrip1.SuspendLayout();
    6467      ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
    6568      this.splitContainer1.Panel1.SuspendLayout();
     
    7982      this.stringConvertibleMatrixView.Caption = "StringConvertibleMatrix View";
    8083      this.stringConvertibleMatrixView.Content = null;
     84      this.stringConvertibleMatrixView.ContextMenuStrip = this.contextMenuStrip1;
    8185      this.stringConvertibleMatrixView.Location = new System.Drawing.Point(3, 38);
    8286      this.stringConvertibleMatrixView.Name = "stringConvertibleMatrixView";
     
    8791      this.stringConvertibleMatrixView.TabIndex = 0;
    8892      //
     93      // contextMenuStrip1
     94      //
     95      this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     96            this.openBoxPlotToolStripMenuItem});
     97      this.contextMenuStrip1.Name = "contextMenuStrip1";
     98      this.contextMenuStrip1.Size = new System.Drawing.Size(175, 26);
     99      //
     100      // openBoxPlotToolStripMenuItem
     101      //
     102      this.openBoxPlotToolStripMenuItem.Name = "openBoxPlotToolStripMenuItem";
     103      this.openBoxPlotToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
     104      this.openBoxPlotToolStripMenuItem.Text = "Open BoxPlot View";
     105      this.openBoxPlotToolStripMenuItem.Click += new System.EventHandler(this.openBoxPlotToolStripMenuItem_Click);
     106      //
    89107      // groupByLabel
    90108      //
     
    119137      // testButton
    120138      //
    121       this.testButton.Location = new System.Drawing.Point(142, 3);
     139      this.testButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     140      this.testButton.Location = new System.Drawing.Point(196, 3);
    122141      this.testButton.Name = "testButton";
    123142      this.testButton.Size = new System.Drawing.Size(109, 23);
     
    153172      this.pValTextBox.Location = new System.Drawing.Point(363, 5);
    154173      this.pValTextBox.Name = "pValTextBox";
     174      this.pValTextBox.ReadOnly = true;
    155175      this.pValTextBox.Size = new System.Drawing.Size(144, 20);
    156176      this.pValTextBox.TabIndex = 13;
     
    180200      // pairwiseTestButton
    181201      //
    182       this.pairwiseTestButton.Location = new System.Drawing.Point(4, 3);
     202      this.pairwiseTestButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     203      this.pairwiseTestButton.Location = new System.Drawing.Point(58, 3);
    183204      this.pairwiseTestButton.Name = "pairwiseTestButton";
    184205      this.pairwiseTestButton.Size = new System.Drawing.Size(132, 23);
     
    249270      this.Name = "StatisticalTestingView";
    250271      this.Size = new System.Drawing.Size(924, 500);
     272      this.contextMenuStrip1.ResumeLayout(false);
    251273      this.splitContainer1.Panel1.ResumeLayout(false);
    252274      this.splitContainer1.Panel1.PerformLayout();
     
    280302    private System.Windows.Forms.SplitContainer splitContainer1;
    281303    private System.Windows.Forms.SplitContainer splitContainer2;
     304    private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
     305    private System.Windows.Forms.ToolStripMenuItem openBoxPlotToolStripMenuItem;
    282306  }
    283307}
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.resx

    r9329 r9333  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
     120  <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     121    <value>114, 17</value>
     122  </metadata>
    120123  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    121124  <data name="infoLabel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     
    166169        lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l
    167170        f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK
    168         j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDgAACw4BQL7hQQAAABl0RVh0U29mdHdhcmUA
     171        j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDAAACwwBP0AiyAAAABl0RVh0U29mdHdhcmUA
    169172        UGFpbnQuTkVUIHYzLjUuODc7gF0AAAK0SURBVDhPrZBrSNNRAMWNvkVEEBT0oY+BUAgSRBhIQmUqKYb4
    170173        KgudU1MTlj2WZUlMykdu+VhatmWKWaaITF35qCmzWoaGj81kms72dm5/3cM9TtvdX9Sob/0+XC6Hcw73
Note: See TracChangeset for help on using the changeset viewer.