Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/13 13:27:44 (11 years ago)
Author:
sbreuer
Message:

MissingValue fix

File:
1 edited

Legend:

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

    r10236 r10238  
    1111        private IPreprocessingData preprocessingData;
    1212        private StatisticInfo statisticInfo;
     13        private ISearchLogic searchLogic;
    1314
    1415        public PreprocessingDataManipulation(IPreprocessingData _prepocessingData) {
    1516            preprocessingData = _prepocessingData;
    1617          //todo
    17             statisticInfo = new StatisticInfo(preprocessingData, new SearchLogic(preprocessingData));
     18            searchLogic = new SearchLogic(preprocessingData);
     19            statisticInfo = new StatisticInfo(preprocessingData,searchLogic);
     20           
    1821        }
    1922
     
    8588        private int indexOfPrevPresentValue(string variableName, int start) {
    8689            int offset = start - 1;
    87             while(offset >= 0 && preprocessingData.IsMissingValue(variableName, offset)){
     90            while (offset >= 0 && searchLogic.IsMissingValue(variableName, offset)) {
    8891                offset--;
    8992            }
     
    9598        {
    9699            int offset = start + 1;
    97             while (offset < preprocessingData.Rows && preprocessingData.IsMissingValue(variableName, offset))
     100            while (offset < preprocessingData.Rows && searchLogic.IsMissingValue(variableName, offset))
    98101            {
    99102                offset++;
Note: See TracChangeset for help on using the changeset viewer.