Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9197


Ignore:
Timestamp:
01/31/13 13:13:05 (11 years ago)
Author:
ascheibe
Message:

#1886 don't do testing if there aren't enough groups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ParameterInfluenceView.cs

    r9196 r9197  
    251251          }
    252252
    253           OneWayAnova owAnova = new OneWayAnova(results.ToArray());
    254           var bla = owAnova.Table;
    255           dt[i, j] = owAnova.Table.First().Significance.PValue.ToString();
     253          if (results.Count() > 1) {
     254            OneWayAnova owAnova = new OneWayAnova(results.ToArray());
     255            dt[i, j] = owAnova.Table.First().Significance.PValue.ToString();
     256          } else {
     257            dt[i, j] = string.Empty;
     258          }
    256259          j++;
    257260        }
Note: See TracChangeset for help on using the changeset viewer.