Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/20/19 16:33:14 (5 years ago)
Author:
jzenisek
Message:

#2288

  • splitted creation of networks with/without possible cycles
  • included additional check to prevent errors within the impact calculation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2288_HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks/3.3/ImpactCalculator.cs

    r16962 r16966  
    3434      shuffledRows.ShuffleInPlace(new FastRandom(1234), partition.Start, partition.End);     
    3535
    36       for (int setSize = 1; setSize <= maxInteractions; setSize++) {
     36      for (int setSize = 1; setSize <= maxInteractions && setSize <= variableNames.Count; setSize++) {
    3737        var combinations = HeuristicLab.Common.EnumerableExtensions.Combinations(variableNames, setSize)
    3838                                   .Where(comb => comb.Any(v => v == variableName)); // variable combinations that contain the selected variable
Note: See TracChangeset for help on using the changeset viewer.