Changeset 11612
- Timestamp:
- 12/01/14 22:47:19 (10 years ago)
- Location:
- branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestingView.cs
r11611 r11612 37 37 public sealed partial class StatisticalTestingView : ItemView { 38 38 private const double significanceLevel = 0.05; 39 private const int requiredSampleSize = 5; 39 40 private double[][] data; 40 41 … … 212 213 private void GenerateChart(DataTable histogramTable) { 213 214 foreach (var row in histogramTable.Rows) { 214 dataTableView.AddPoints(row.Name, row.Values, true);215 histogramControl.AddPoints(row.Name, row.Values, true); 215 216 } 216 217 } … … 254 255 255 256 //alglib needs at least 5 samples for computation 256 if (data.Any(x => x.Length <= 5)) {257 if (data.Any(x => x.Length <= requiredSampleSize)) { 257 258 if (showMessage) 258 259 MessageBox.Show(this, "You need to choose samples with a size greater 5.", "HeuristicLab", MessageBoxButtons.OK, … … 290 291 return; 291 292 292 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView( this, "Calculating...");293 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(pairwiseTestGroupBox, "Calculating..."); 293 294 Task.Factory.StartNew(() => CalculatePairwiseAsync(groupName)); 294 295 } … … 298 299 CalculatePairwiseTestDetails(groupName); 299 300 300 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView( this);301 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(pairwiseTestGroupBox); 301 302 } 302 303 -
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestingView.designer.cs
r11611 r11612 74 74 this.tabPage1 = new System.Windows.Forms.TabPage(); 75 75 this.tabPage2 = new System.Windows.Forms.TabPage(); 76 this. dataTableView= new HeuristicLab.Analysis.Views.HistogramControl();76 this.histogramControl = new HeuristicLab.Analysis.Views.HistogramControl(); 77 77 this.contextMenuStrip1.SuspendLayout(); 78 78 ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); … … 442 442 // tabPage2 443 443 // 444 this.tabPage2.Controls.Add(this. dataTableView);444 this.tabPage2.Controls.Add(this.histogramControl); 445 445 this.tabPage2.Location = new System.Drawing.Point(4, 22); 446 446 this.tabPage2.Name = "tabPage2"; … … 453 453 // dataTableView 454 454 // 455 this. dataTableView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)456 | System.Windows.Forms.AnchorStyles.Left) 457 | System.Windows.Forms.AnchorStyles.Right))); 458 this. dataTableView.Location = new System.Drawing.Point(6, 6);459 this. dataTableView.Name = "dataTableView";460 this. dataTableView.Size = new System.Drawing.Size(910, 529);461 this. dataTableView.TabIndex = 0;455 this.histogramControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 456 | System.Windows.Forms.AnchorStyles.Left) 457 | System.Windows.Forms.AnchorStyles.Right))); 458 this.histogramControl.Location = new System.Drawing.Point(6, 6); 459 this.histogramControl.Name = "dataTableView"; 460 this.histogramControl.Size = new System.Drawing.Size(910, 529); 461 this.histogramControl.TabIndex = 0; 462 462 // 463 463 // StatisticalTestingView … … 520 520 private System.Windows.Forms.TabPage tabPage1; 521 521 private System.Windows.Forms.TabPage tabPage2; 522 private HeuristicLab.Analysis.Views.HistogramControl dataTableView;522 private HeuristicLab.Analysis.Views.HistogramControl histogramControl; 523 523 } 524 524 }
Note: See TracChangeset
for help on using the changeset viewer.