Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/14 14:13:11 (11 years ago)
Author:
rstoll
Message:
  • modified PreprocessingData, uses columnIndex now instead of variableName (is faster and more convenient), set variabelName based methods to Obsolete
  • Already changed SearchLogic, DataGridLogic, StatisticLogic as well as PreprocessingDataManipulation

*

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IDataGridLogic.cs

    r10246 r10367  
    33  public interface IDataGridLogic {
    44    IEnumerable<string> ColumnNames { get; }
     5    string GetColumnTypeAsString(int columnIndex);
    56    IEnumerable<string> RowNames { get; }
    67    int Columns { get; }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingData.cs

    r10311 r10367  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    2324using HeuristicLab.Core;
     
    2829
    2930  public interface IPreprocessingData : INamedItem {
    30     T GetCell<T>(string variableName, int row);
    31     void SetCell<T>(string variableName, int row, T value);
    32     string GetCellAsString(string variableName, int row);
     31    [Obsolete("use the index based variant, is faster")]
     32    T GetCell<T>(string variableName, int rowIndex);
     33    T GetCell<T>(int columnIndex, int rowIndex);
    3334
     35    [Obsolete("use the index based variant, is faster")]
     36    void SetCell<T>(string variableName, int rowIndex, T value);
     37    void SetCell<T>(int columnIndex, int rowIndex, T value);
     38
     39    [Obsolete("use the index based variant, is faster")]
     40    string GetCellAsString(string variableName, int rowIndex);
     41    string GetCellAsString(int columnIndex, int rowIndex);
     42
     43    [Obsolete("use the index based variant, is faster")]
    3444    IList<T> GetValues<T>(string variableName);
     45    IList<T> GetValues<T>(int columnIndex);
     46
     47    [Obsolete("use the index based variant, is faster")]
    3548    void SetValues<T>(string variableName, IList<T> values);
     49    void SetValues<T>(int columnIndex, IList<T> values);
    3650
    3751    void InsertRow(int rowIndex);
     
    3953
    4054    void InsertColumn<T>(string variableName, int columnIndex);
     55
     56    [Obsolete("use the index based variant, is faster")]
    4157    void DeleteColumn(string variableName);
     58    void DeleteColumn(int columnIndex);
    4259
    4360    IntRange TrainingPartition { get; }
     
    4663    IEnumerable<string> VariableNames { get; }
    4764    string GetVariableName(int columnIndex);
     65    int GetColumnIndex(string variableName);
     66
     67    [Obsolete("use the index based variant, is faster")]
    4868    bool IsType<T>(string variableName);
     69    bool IsType<T>(int columnIndex);
     70
    4971
    5072    int Columns { get; }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingDataManipulation.cs

    r10256 r10367  
    55    void reOrderToIndices(IEnumerable<int> indices);
    66    void reOrderToIndices(IList<Tuple<int, int>> indices);
    7     void ReplaceIndicesByAverageValue(string variableName, IEnumerable<int> indices);
    8     void ReplaceIndicesByLinearInterpolationOfNeighbours(string variableName, IEnumerable<int> indices);
    9     void ReplaceIndicesByMedianValue(string variableName, IEnumerable<int> indices);
    10     void ReplaceIndicesByMostCommonValue(string variableName, IEnumerable<int> indices);
    11     void ReplaceIndicesByRandomValue(string variableName, IEnumerable<int> indices);
    12     void ReplaceIndicesByValue<T>(string variableName, IEnumerable<int> indices, T value);
     7    void ReplaceIndicesByAverageValue(int columnIndex, IEnumerable<int> rowIndices);
     8    void ReplaceIndicesByLinearInterpolationOfNeighbours(int columnIndex, IEnumerable<int> rowIndices);
     9    void ReplaceIndicesByMedianValue(int columnIndex, IEnumerable<int> rowIndices);
     10    void ReplaceIndicesByMostCommonValue(int columnIndex, IEnumerable<int> rowIndices);
     11    void ReplaceIndicesByRandomValue(int columnIndex, IEnumerable<int> rowIndices);
     12    void ReplaceIndicesByValue<T>(int columnIndex, IEnumerable<int> rowIndices, T value);
    1313    void ShuffleWithRanges(IEnumerable<HeuristicLab.Data.IntRange> ranges);
    1414  }
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/ISearchLogic.cs

    r10236 r10367  
    1717    /// </summary>
    1818    /// <returns></returns>
    19     IEnumerable<int> GetMissingValueIndices(string variableName);
     19    IEnumerable<int> GetMissingValueIndices(int columnIndex);
    2020
    21     bool IsMissingValue(string variableName, int rowIndex);
     21    bool IsMissingValue(int columnIndex, int rowIndex);
    2222  }
    2323}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IStatisticsLogic.cs

    r10249 r10367  
    99    int GetNominalColumnCount();
    1010    int GetMissingValueCount();
    11     int GetMissingValueCount(string variableName);
     11    int GetMissingValueCount(int columnIndex);
    1212    int GetRowMissingValueCount(int rowIndex);
    13     T GetMin<T>(string variableName) where T : IComparable<T>;
    14     T GetMax<T>(string variableName) where T : IComparable<T>;
    15     double GetMedian(string variableName);
    16     double GetAverage(string variableName);
    17     T GetMostCommonValue<T>(string variableName);
    18     double GetStandardDeviation(string variableName);
    19     double GetVariance(string variableName);
    20     int GetDifferentValuesCount<T>(string variableName);
     13    T GetMin<T>(int columnIndex) where T : IComparable<T>;
     14    T GetMax<T>(int columnIndex) where T : IComparable<T>;
     15    double GetMedian(int columnIndex);
     16    double GetAverage(int columnIndex);
     17    T GetMostCommonValue<T>(int columnIndex);
     18    double GetStandardDeviation(int columnIndex);
     19    double GetVariance(int columnIndex);
     20    int GetDifferentValuesCount<T>(int columnIndex);
     21    bool IsType<T>(int columnIndex);
    2122  }
    2223}
Note: See TracChangeset for help on using the changeset viewer.