Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/14 12:21:27 (11 years ago)
Author:
sbreuer
Message:
  • changed variableName to columnIndex
File:
1 edited

Legend:

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

    r10383 r10532  
    103103    public double GetStandardDeviation(int columnIndex) {
    104104      double stdDev = double.NaN;
    105       //TODO: fix me
    106       /*
    107105      if (preprocessingData.IsType<double>(columnIndex)) {
    108106        stdDev = preprocessingData.GetValues<double>(columnIndex).StandardDeviation();
     107      } else if (preprocessingData.IsType<DateTime>(columnIndex)) {
     108        stdDev = GetDateTimeAsSeconds(columnIndex).StandardDeviation();
    109109      }
    110       else if (preprocessingData.IsType<DateTime>(variableName)) {
    111         stdDev = GetDateTimeAsSeconds(variableName).StandardDeviation();
    112       }
    113       */
    114110      return stdDev;
    115111    }
     
    117113    public double GetVariance(int columnIndex) {
    118114      double variance = double.NaN;
    119       //TODO: fix me
    120       /*
    121115      if (preprocessingData.IsType<double>(columnIndex)) {
    122116        variance = preprocessingData.GetValues<double>(columnIndex).Variance();
     117      } else if (preprocessingData.IsType<DateTime>(columnIndex)) {
     118        variance = GetDateTimeAsSeconds(columnIndex).Variance();
    123119      }
    124       else if (preprocessingData.IsType<DateTime>(variableName)) {
    125         variance = GetDateTimeAsSeconds(variableName).Variance();
    126       }
    127       */
    128120      return variance;
    129121    }
Note: See TracChangeset for help on using the changeset viewer.