Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/14 11:44:22 (11 years ago)
Author:
mleitner
Message:

Add logic for apply filter button

File:
1 edited

Legend:

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

    r10692 r10696  
    3535    public bool[] Preview(IList<IFilter> filters)
    3636    {
     37       IList<IFilter> activeFilters = filters.Where(f => f.Active && f.ConstraintData != null).ToList<IFilter>();
     38
     39       if (activeFilters.Count == 0) {
     40        return new bool[preprocessingData.Rows];
     41       }
     42
    3743       bool[] result = Enumerable.Repeat<bool>(true, preprocessingData.Rows).ToArray();
    3844
    3945       foreach (IFilter filter in filters)
    4046       {
    41             if (filter.ConstraintData == null || !filter.Active) {
    42               continue;
    43             }
    44 
    4547            bool[] filterResult = filter.Check();
    4648
Note: See TracChangeset for help on using the changeset viewer.