Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/01/14 22:47:19 (10 years ago)
Author:
ascheibe
Message:

#2031 fixed a bug in the progress handling of the statistical testing view

File:
1 edited

Legend:

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

    r11611 r11612  
    3737  public sealed partial class StatisticalTestingView : ItemView {
    3838    private const double significanceLevel = 0.05;
     39    private const int requiredSampleSize = 5;
    3940    private double[][] data;
    4041
     
    212213    private void GenerateChart(DataTable histogramTable) {
    213214      foreach (var row in histogramTable.Rows) {
    214         dataTableView.AddPoints(row.Name, row.Values, true);
     215        histogramControl.AddPoints(row.Name, row.Values, true);
    215216      }
    216217    }
     
    254255
    255256      //alglib needs at least 5 samples for computation
    256       if (data.Any(x => x.Length <= 5)) {
     257      if (data.Any(x => x.Length <= requiredSampleSize)) {
    257258        if (showMessage)
    258259          MessageBox.Show(this, "You need to choose samples with a size greater 5.", "HeuristicLab", MessageBoxButtons.OK,
     
    290291        return;
    291292
    292       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Calculating...");
     293      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(pairwiseTestGroupBox, "Calculating...");
    293294      Task.Factory.StartNew(() => CalculatePairwiseAsync(groupName));
    294295    }
     
    298299      CalculatePairwiseTestDetails(groupName);
    299300
    300       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     301      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(pairwiseTestGroupBox);
    301302    }
    302303
Note: See TracChangeset for help on using the changeset viewer.