Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/22/15 19:12:29 (9 years ago)
Author:
gkronber
Message:

#2491: removed usage of Percentile extension method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/StatisticsLogic.cs

    r12889 r13051  
    166166      double percentile = double.NaN;
    167167      if (preprocessingData.VariableHasType<double>(columnIndex)) {
    168         percentile = GetValuesWithoutNaN<double>(columnIndex).Percentile(0.25);
    169       } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) {
    170         percentile = GetDateTimeAsSeconds(columnIndex).Percentile(0.25);
     168        percentile = GetValuesWithoutNaN<double>(columnIndex).Quantile(0.25);
     169      } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) {
     170        percentile = GetDateTimeAsSeconds(columnIndex).Quantile(0.25);
    171171      }
    172172      return percentile;
     
    176176      double percentile = double.NaN;
    177177      if (preprocessingData.VariableHasType<double>(columnIndex)) {
    178         percentile = GetValuesWithoutNaN<double>(columnIndex).Percentile(0.75);
    179       } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) {
    180         percentile = GetDateTimeAsSeconds(columnIndex).Percentile(0.75);
     178        percentile = GetValuesWithoutNaN<double>(columnIndex).Quantile(0.75);
     179      } else if (preprocessingData.VariableHasType<DateTime>(columnIndex)) {
     180        percentile = GetDateTimeAsSeconds(columnIndex).Quantile(0.75);
    181181      }
    182182      return percentile;
Note: See TracChangeset for help on using the changeset viewer.