Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs @ 10168

Last change on this file since 10168 was 10168, checked in by tsteinre, 11 years ago
  • intermediate commit , further work on PreprocessingData
File size: 3.4 KB
Line 
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
22using System;
23using System.Collections;
24using System.Collections.Generic;
25using HeuristicLab.Core;
26using HeuristicLab.DataPreprocessing.Interfaces;
27using HeuristicLab.Problems.DataAnalysis;
28
29namespace HeuristicLab.DataPreprocessing.Implementation {
30  [Item("PreprocessingData", "Represents data used for preprocessing.")]
31  public class PreprocessingData : NamedItem, IPreprocessingData {
32
33    private Dictionary<string, IList> variableValues;
34
35    public PreprocessingData(IDataAnalysisProblemData problemData)
36      : base() {
37      Name = "-";
38      foreach (var s in problemData.Dataset.VariableNames) {
39        if (problemData.Dataset.IsType<double>(s)) {
40
41        } else if (problemData.Dataset.IsType<string>(s)) {
42
43        } else if (problemData.Dataset.IsType<DateTime>(s)) {
44
45        } else {
46          throw new ArgumentException("The datatype of column " + s + "is of TODO");
47        }
48      }
49      throw new NotImplementedException();
50    }
51
52    #region NamedItem abstract Member Implementations
53
54    public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
55      throw new NotImplementedException();
56    }
57
58    #endregion
59
60    #region IPreprocessingData Members
61
62    public T GetCell<T>(int columnIndex, int rowIndex) {
63      throw new NotImplementedException();
64    }
65
66    public void SetCell<T>(int columnIndex, int rowIndex, T value) {
67      throw new NotImplementedException();
68    }
69
70    public IList<T> GetValues<T>(int columnIndex) {
71      throw new NotImplementedException();
72    }
73
74    public void SetValues<T>(int columnIndex, IEnumerable<T> values) {
75      throw new NotImplementedException();
76    }
77
78    public void InsertRow(int rowIndex) {
79      throw new NotImplementedException();
80    }
81
82    public void DeleteRow(int rowIndex) {
83      throw new NotImplementedException();
84    }
85
86    public void InsertColumn(string variableName, int columnIndex) {
87      throw new NotImplementedException();
88    }
89
90    public void DeleteColumn(int columnIndex) {
91      throw new NotImplementedException();
92    }
93
94    public IList<string> VariableNames {
95      get { throw new NotImplementedException(); }
96    }
97
98    public bool IsType<T>(int columnIndex) {
99      throw new NotImplementedException();
100    }
101
102    public int Columns {
103      get { throw new NotImplementedException(); }
104    }
105
106    public int Rows {
107      get { throw new NotImplementedException(); }
108    }
109
110    public void ExportTo(IDataAnalysisProblemData problemData) {
111      throw new NotImplementedException();
112    }
113
114    #endregion
115  }
116}
Note: See TracBrowser for help on using the repository browser.