Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10666


Ignore:
Timestamp:
03/26/14 14:51:22 (11 years ago)
Author:
sbreuer
Message:
  • initialize filterlogic list with true
File:
1 edited

Legend:

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

    r10638 r10666  
    2222using HeuristicLab.DataPreprocessing.Filter;
    2323using System.Collections.Generic;
     24using System;
     25using System.Linq;
    2426namespace HeuristicLab.DataPreprocessing {
    2527  public class FilterLogic : IFilterLogic {
     
    3436    public bool[] Preview(IList<IFilter> filters)
    3537    {
    36        bool[] result = new bool[preprocessingData.Rows];
     38       bool[] result = Enumerable.Repeat<bool>(true, preprocessingData.Rows).ToArray();
    3739
    3840       foreach (IFilter filter in filters)
     
    4143
    4244            for(int row = 0; row < result.Length; ++row) {
    43                 result[row] = result[row] & filterResult[row];
     45                result[row] = result[row] && filterResult[row];
    4446            }
    4547        }
Note: See TracChangeset for help on using the changeset viewer.