Changeset 15269 for branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
- Timestamp:
- 07/18/17 14:19:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
r15110 r15269 160 160 } 161 161 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 } 162 168 163 169 #region IPreprocessingData Members 170 public abstract bool IsCellEmpty(int columnIndex, int rowIndex); 164 171 public abstract T GetCell<T>(int columnIndex, int rowIndex); 165 172 … … 173 180 174 181 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);178 182 179 183 public abstract IList<T> GetValues<T>(int columnIndex, bool considerSelection);
Note: See TracChangeset
for help on using the changeset viewer.