Changeset 10661 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticsLogic.cs
- Timestamp:
- 03/26/14 13:34:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/StatisticsLogic.cs
r10635 r10661 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using System.Collections; 26 27 27 28 namespace HeuristicLab.DataPreprocessing { … … 178 179 } 179 180 180 private List<T> GetValuesWithoutNaN<T>(int columnIndex) {181 IEnumerable<int> missing = searchLogic.GetMissingValueIndices(columnIndex);182 return preprocessingData.GetValues<T>(columnIndex)183 .Select((v, i) => new { i, v })184 .Where(x => !missing.Contains(x.i))185 .Select(x => x.v).ToList<T>();186 }187 181 private IEnumerable<double> GetDateTimeAsSeconds(int columnIndex) { 188 182 return GetValuesWithoutNaN<DateTime>(columnIndex).Select(x => (double)x.Ticks / TimeSpan.TicksPerSecond); 183 } 184 185 private IEnumerable<T> GetValuesWithoutNaN<T>(int columnIndex) { 186 return searchLogic.GetValuesWithoutNaN<T>(columnIndex); 189 187 } 190 188
Note: See TracChangeset
for help on using the changeset viewer.