- Timestamp:
- 01/22/14 14:13:11 (11 years ago)
- 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 3 3 public interface IDataGridLogic { 4 4 IEnumerable<string> ColumnNames { get; } 5 string GetColumnTypeAsString(int columnIndex); 5 6 IEnumerable<string> RowNames { get; } 6 7 int Columns { get; } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingData.cs
r10311 r10367 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using HeuristicLab.Core; … … 28 29 29 30 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); 33 34 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")] 34 44 IList<T> GetValues<T>(string variableName); 45 IList<T> GetValues<T>(int columnIndex); 46 47 [Obsolete("use the index based variant, is faster")] 35 48 void SetValues<T>(string variableName, IList<T> values); 49 void SetValues<T>(int columnIndex, IList<T> values); 36 50 37 51 void InsertRow(int rowIndex); … … 39 53 40 54 void InsertColumn<T>(string variableName, int columnIndex); 55 56 [Obsolete("use the index based variant, is faster")] 41 57 void DeleteColumn(string variableName); 58 void DeleteColumn(int columnIndex); 42 59 43 60 IntRange TrainingPartition { get; } … … 46 63 IEnumerable<string> VariableNames { get; } 47 64 string GetVariableName(int columnIndex); 65 int GetColumnIndex(string variableName); 66 67 [Obsolete("use the index based variant, is faster")] 48 68 bool IsType<T>(string variableName); 69 bool IsType<T>(int columnIndex); 70 49 71 50 72 int Columns { get; } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingDataManipulation.cs
r10256 r10367 5 5 void reOrderToIndices(IEnumerable<int> indices); 6 6 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); 13 13 void ShuffleWithRanges(IEnumerable<HeuristicLab.Data.IntRange> ranges); 14 14 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/ISearchLogic.cs
r10236 r10367 17 17 /// </summary> 18 18 /// <returns></returns> 19 IEnumerable<int> GetMissingValueIndices( string variableName);19 IEnumerable<int> GetMissingValueIndices(int columnIndex); 20 20 21 bool IsMissingValue( string variableName, int rowIndex);21 bool IsMissingValue(int columnIndex, int rowIndex); 22 22 } 23 23 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IStatisticsLogic.cs
r10249 r10367 9 9 int GetNominalColumnCount(); 10 10 int GetMissingValueCount(); 11 int GetMissingValueCount( string variableName);11 int GetMissingValueCount(int columnIndex); 12 12 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); 21 22 } 22 23 }
Note: See TracChangeset
for help on using the changeset viewer.