Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/04/13 17:14:11 (11 years ago)
Author:
ascheibe
Message:

#2031 try to filter NaN values in correlation view and some other minor improvements

File:
1 edited

Legend:

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

    r9923 r9936  
    288288      }
    289289
    290       for (int i = 0; i < res.Count(); i++) {
    291         if (res[i] < 0.1) {
    292           this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; }));
    293         } else {
    294           this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; }));
    295         }
     290      // p-value is below significance level and thus the null hypothesis (data is normally distributed) is rejected.
     291      if (res.Any(x => x < 0.05)) {
     292        this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Common.Resources.VSImageLibrary.Warning; }));
     293      } else {
     294        this.Invoke(new Action(() => { normalityLabel.Image = HeuristicLab.Analysis.Statistics.Resources.Default; }));
    296295      }
    297296    }
Note: See TracChangeset for help on using the changeset viewer.