Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/18/17 14:19:29 (7 years ago)
Author:
pfleck
Message:

#2809: Removed SearchLogic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs

    r15110 r15269  
    160160    }
    161161
     162    public static bool IsMissingValue(object value) {
     163      if (value is double) return double.IsNaN((double)value);
     164      if (value is string) return string.IsNullOrEmpty((string)value);
     165      if (value is DateTime) return ((DateTime)value).Equals(DateTime.MinValue);
     166      throw new ArgumentException();
     167    }
    162168
    163169    #region IPreprocessingData Members
     170    public abstract bool IsCellEmpty(int columnIndex, int rowIndex);
    164171    public abstract T GetCell<T>(int columnIndex, int rowIndex);
    165172
     
    173180
    174181    public abstract bool VariableHasType<T>(int columnIndex);
    175 
    176     [Obsolete("use the index based variant, is faster")]
    177     public abstract IList<T> GetValues<T>(string variableName, bool considerSelection);
    178182
    179183    public abstract IList<T> GetValues<T>(int columnIndex, bool considerSelection);
Note: See TracChangeset for help on using the changeset viewer.