Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/07/17 09:43:58 (7 years ago)
Author:
pfleck
Message:

#2809 Worked on type-save PreprocessingDataColumns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing/3.4/Data/FilteredPreprocessingData.cs

    r15283 r15309  
    3838    private IPreprocessingData filteredData;
    3939
     40    public IList<PreprocessingDataColumn> DataColumns {
     41      get { return ActiveData.DataColumns; }
     42    }
     43
    4044    public IPreprocessingData ActiveData {
    4145      get { return IsFiltered ? filteredData : originalData; }
     
    8286    }
    8387
    84     public IList<T> GetValues<T>(int columnIndex, bool considerSelection) {
     88    public IEnumerable<T> GetValues<T>(int columnIndex, bool considerSelection) {
    8589      return ActiveData.GetValues<T>(columnIndex, considerSelection);
    8690    }
    8791
    88     public void SetValues<T>(int columnIndex, IList<T> values) {
     92    public void SetValues<T>(int columnIndex, IEnumerable<T> values) {
    8993      if (IsFiltered)
    9094        throw new InvalidOperationException("SetValues not possible while data is filtered");
     
    123127    }
    124128
    125     public void DeleteRowsWithIndices(IEnumerable<int> rows) {
     129    public void DeleteRows(IEnumerable<int> rows) {
    126130      if (IsFiltered)
    127131        throw new InvalidOperationException("DeleteRowsWithIndices not possible while data is filtered");
    128132
    129       originalData.DeleteRowsWithIndices(rows);
     133      originalData.DeleteRows(rows);
    130134    }
    131135
     
    273277    public void EndTransaction() {
    274278      originalData.EndTransaction();
    275     }
    276     #endregion
    277 
    278     #region Statistics
    279     public T GetMin<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) {
    280       return ActiveData.GetMin<T>(columnIndex, considerSelection, emptyValue);
    281     }
    282     public T GetMax<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) {
    283       return ActiveData.GetMax<T>(columnIndex, considerSelection, emptyValue);
    284     }
    285     public T GetMean<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) {
    286       return ActiveData.GetMean<T>(columnIndex, considerSelection, emptyValue);
    287     }
    288     public T GetMedian<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) where T : IComparable<T> {
    289       return ActiveData.GetMean<T>(columnIndex, considerSelection, emptyValue);
    290     }
    291     public T GetMode<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) where T : IEquatable<T> {
    292       return ActiveData.GetMode<T>(columnIndex, considerSelection, emptyValue);
    293     }
    294     public T GetStandardDeviation<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) {
    295       return ActiveData.GetStandardDeviation<T>(columnIndex, considerSelection, emptyValue);
    296     }
    297     public T GetVariance<T>(int columnIndex, bool considerSelection = false, T emptyValue = default(T)) {
    298       return ActiveData.GetVariance<T>(columnIndex, considerSelection, emptyValue);
    299     }
    300     public T GetQuantile<T>(double alpha, int columnIndex, bool considerSelection = false, T emptyValue = default(T)) where T : IComparable<T> {
    301       return ActiveData.GetQuantile<T>(alpha, columnIndex, considerSelection, emptyValue);
    302     }
    303     public int GetDistinctValues<T>(int columnIndex, bool considerSelection = false) {
    304       return ActiveData.GetDistinctValues<T>(columnIndex, considerSelection);
    305     }
    306 
    307     public int GetMissingValueCount() {
    308       return ActiveData.GetMissingValueCount();
    309     }
    310     public int GetMissingValueCount(int columnIndex) {
    311       return ActiveData.GetMissingValueCount(columnIndex);
    312     }
    313     public int GetRowMissingValueCount(int rowIndex) {
    314       return ActiveData.GetRowMissingValueCount(rowIndex);
    315279    }
    316280    #endregion
Note: See TracChangeset for help on using the changeset viewer.