Changeset 11612 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestingView.cs
- Timestamp:
- 12/01/14 22:47:19 (10 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.