Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/13 14:03:50 (11 years ago)
Author:
pfleck
Message:

Added variableName list.
Implemented GetCell, Columns and Rows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs

    r10185 r10186  
    3535    private IDictionary<string, IList> variableValues;
    3636
     37    private IList<string> variableNames;
     38
    3739    private IDictionary<string, int> variableNameIndices;
    3840
     
    4951      Name = "-";
    5052
     53      variableNames = new List<string>(problemData.Dataset.VariableNames));
    5154      // create dictionary from variable name to index
    5255      variableNameIndices = new Dictionary<string, int>();
     
    7174
    7275      trainingToTestRatio = (double)problemData.TrainingPartition.Size / problemData.TestPartition.Size;
     76      Columns = problemData.Dataset.Columns;
     77      Rows = problemData.Dataset.Rows;
    7378    }
    7479
     
    9297
    9398    public T GetCell<T>(int columnIndex, int rowIndex) {
    94       throw new NotImplementedException();
     99      return (T)variableValues[variableNames[columnIndex]][rowIndex];
    95100    }
    96101
     
    156161
    157162    public int Columns {
    158       get { throw new NotImplementedException(); }
     163      get;
     164      private set;
    159165    }
    160166
    161167    public int Rows {
    162       get { throw new NotImplementedException(); }
     168      get;
     169      private set;
    163170    }
    164171
Note: See TracChangeset for help on using the changeset viewer.