Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/14 11:52:19 (9 years ago)
Author:
ascheibe
Message:

#2031 added more information to the UI about the results of the statistical tests

File:
1 edited

Legend:

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

    r11693 r11695  
    249249    private void ResetUI() {
    250250      normalityLabel.Image = null;
     251      normalityTextLabel.Text = string.Empty;
    251252      groupCompLabel.Image = null;
     253      groupComTextLabel.Text = string.Empty;
    252254      pairwiseLabel.Image = null;
     255      pairwiseTextLabel.Text = string.Empty;
     256
    253257      pValTextBox.Text = string.Empty;
    254258      equalDistsTextBox.Text = string.Empty;
     
    275279      if (data.Any(x => x.Length <= requiredSampleSize)) {
    276280        if (showMessage)
    277           MessageBox.Show(this, "You need to choose samples with a size greater 5.", "HeuristicLab", MessageBoxButtons.OK,
     281          MessageBox.Show(this, "You need at least " + requiredSampleSize
     282            + " samples per group for computing hypothesis tests.", "HeuristicLab", MessageBoxButtons.OK,
    278283            MessageBoxIcon.Error);
    279284        return false;
     
    324329      pValTextBox.Text = pval.ToString();
    325330      if (pval < significanceLevel) {
    326         this.Invoke(new Action(() => { groupCompLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; }));
     331        this.Invoke(new Action(() => {
     332          groupCompLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default;
     333          groupComTextLabel.Text = "There are groups with different distributions";
     334        }));
    327335      } else {
    328         this.Invoke(new Action(() => { groupCompLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; }));
     336        this.Invoke(new Action(() => {
     337          groupCompLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning;
     338          groupComTextLabel.Text = "Groups have an equal distribution";
     339        }));
    329340      }
    330341    }
     
    341352      // p-value is below significance level and thus the null hypothesis (data is normally distributed) is rejected.
    342353      if (res.Any(x => x < significanceLevel)) {
    343         this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; }));
     354        this.Invoke(new Action(() => {
     355          normalityLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning;
     356          normalityTextLabel.Text = "Some groups may not be normally distributed";
     357        }));
    344358      } else {
    345         this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; }));
     359        this.Invoke(new Action(() => {
     360          normalityLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default;
     361          normalityTextLabel.Text = "All sample data is normally distributed";
     362        }));
    346363      }
    347364    }
     
    389406
    390407      if (cnt == 0) {
    391         this.Invoke(new Action(() => { pairwiseLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; }));
     408        this.Invoke(new Action(() => {
     409          pairwiseLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default;
     410          pairwiseTextLabel.Text = "All groups have different distributions";
     411        }));
    392412      } else {
    393         this.Invoke(new Action(() => { pairwiseLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; }));
     413        this.Invoke(new Action(() => {
     414          pairwiseLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning;
     415          pairwiseTextLabel.Text = "Some groups have equal distributions";
     416        }));
    394417      }
    395418    }
Note: See TracChangeset for help on using the changeset viewer.