1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Collections.Generic;
|
---|
24 | using HeuristicLab.Core;
|
---|
25 | using HeuristicLab.Data;
|
---|
26 | using HeuristicLab.Problems.DataAnalysis;
|
---|
27 |
|
---|
28 | namespace HeuristicLab.DataPreprocessing {
|
---|
29 |
|
---|
30 | public interface IPreprocessingData : INamedItem {
|
---|
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);
|
---|
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")]
|
---|
44 | IList<T> GetValues<T>(string variableName);
|
---|
45 | IList<T> GetValues<T>(int columnIndex);
|
---|
46 |
|
---|
47 | [Obsolete("use the index based variant, is faster")]
|
---|
48 | void SetValues<T>(string variableName, IList<T> values);
|
---|
49 | void SetValues<T>(int columnIndex, IList<T> values);
|
---|
50 |
|
---|
51 | void InsertRow(int rowIndex);
|
---|
52 | void DeleteRow(int rowIndex);
|
---|
53 |
|
---|
54 | void InsertColumn<T>(string variableName, int columnIndex);
|
---|
55 |
|
---|
56 | [Obsolete("use the index based variant, is faster")]
|
---|
57 | void DeleteColumn(string variableName);
|
---|
58 | void DeleteColumn(int columnIndex);
|
---|
59 |
|
---|
60 | IntRange TrainingPartition { get; }
|
---|
61 | IntRange TestPartition { get; }
|
---|
62 |
|
---|
63 | IEnumerable<string> VariableNames { get; }
|
---|
64 | string GetVariableName(int columnIndex);
|
---|
65 | int GetColumnIndex(string variableName);
|
---|
66 |
|
---|
67 | [Obsolete("use the index based variant, is faster")]
|
---|
68 | bool IsType<T>(string variableName);
|
---|
69 | bool IsType<T>(int columnIndex);
|
---|
70 |
|
---|
71 |
|
---|
72 | int Columns { get; }
|
---|
73 | int Rows { get; }
|
---|
74 |
|
---|
75 | Dataset ExportToDataset();
|
---|
76 |
|
---|
77 | event DataPreprocessingChangedEventHandler Changed;
|
---|
78 | }
|
---|
79 | }
|
---|