Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13427 for trunk


Ignore:
Timestamp:
12/02/15 09:50:02 (9 years ago)
Author:
mkommend
Message:

#2536: Implemented IStringConvertibleMatrix explicitly in Dataset.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/PreprocessingData.cs

    r13252 r13427  
    134134    }
    135135
    136     private static IList CreateColumn<T>(Dataset ds, int column, Func<string, T> selector) {
    137       var list = new List<T>(ds.Rows);
    138       for (int row = 0; row < ds.Rows; ++row) {
    139         list.Add(selector(ds.GetValue(row, column)));
    140       }
    141       return list;
    142     }
    143 
    144136    private void CheckPartitionRanges() {
    145137      int maxRowIndex = Math.Max(0, Rows - 1);
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs

    r13419 r13427  
    200200      set { throw new NotSupportedException(); }
    201201    }
    202     public bool SortableView {
     202    bool IStringConvertibleMatrix.SortableView {
    203203      get { return false; }
    204204      set { throw new NotSupportedException(); }
    205205    }
    206     public bool ReadOnly {
     206    bool IStringConvertibleMatrix.ReadOnly {
    207207      get { return true; }
    208208    }
     
    215215      set { throw new NotSupportedException(); }
    216216    }
    217     public string GetValue(int rowIndex, int columnIndex) {
     217    string IStringConvertibleMatrix.GetValue(int rowIndex, int columnIndex) {
    218218      return variableValues[variableNames[columnIndex]][rowIndex].ToString();
    219219    }
Note: See TracChangeset for help on using the changeset viewer.