Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/14 14:26:05 (11 years ago)
Author:
psteiner
Message:

Filter Logic And/Or Conjunction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/FilterLogic.cs

    r10844 r10849  
    4040      }
    4141
    42       bool[] result = CreateBoolArray(preprocessingData.Rows, isAndCombination);
     42      bool[] result = CreateBoolArray(preprocessingData.Rows, !isAndCombination);
    4343
    4444      foreach (IFilter filter in activeFilters) {
     
    6262
    6363    public bool Result(bool current, bool addition, bool isAndCombination) {
    64       return isAndCombination ? current && addition : current || addition;
     64      return isAndCombination ? current || addition : current && addition;
    6565    }
    6666
Note: See TracChangeset for help on using the changeset viewer.