Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/26/14 13:34:18 (10 years ago)
Author:
mleitner
Message:

Cache Missing value dedection

File:
1 edited

Legend:

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

    r10635 r10661  
    2424using System.Linq;
    2525using HeuristicLab.Common;
     26using System.Collections;
    2627
    2728namespace HeuristicLab.DataPreprocessing {
     
    178179    }
    179180
    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     }
    187181    private IEnumerable<double> GetDateTimeAsSeconds(int columnIndex) {
    188182      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);
    189187    }
    190188
Note: See TracChangeset for help on using the changeset viewer.