Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10256


Ignore:
Timestamp:
12/18/13 16:33:52 (11 years ago)
Author:
rstoll
Message:

Fixed View error

Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
Files:
3 edited

Legend:

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

    r10255 r10256  
    55
    66namespace HeuristicLab.DataPreprocessing {
    7   class PreprocessingDataManipulation : IPreprocessingDataManipulation {
     7  public class PreprocessingDataManipulation : IPreprocessingDataManipulation {
    88    private IPreprocessingData preprocessingData;
    99    private IStatisticsLogic statisticInfo;
     
    115115        }
    116116
    117         reOrdertoIndices(shuffledIndices);
     117        reOrderToIndices(shuffledIndices);
    118118      }
    119119    }
    120120
    121     public void reOrdertoIndices(IEnumerable<int> indices)
    122     {
    123         List<Tuple<int, int>> indicesTuple = new List<Tuple<int, int>>();
    124  
    125         for (int i = 0; i < indices.Count(); ++i) {
    126             new Tuple<int, int>(i, indices.ElementAt(i));
    127         }
     121    public void reOrderToIndices(IEnumerable<int> indices) {
     122      List<Tuple<int, int>> indicesTuple = new List<Tuple<int, int>>();
    128123
    129         reOrdertoIndices(indicesTuple);
     124      for (int i = 0; i < indices.Count(); ++i) {
     125        new Tuple<int, int>(i, indices.ElementAt(i));
     126      }
     127
     128      reOrderToIndices(indicesTuple);
    130129    }
    131130
    132     public void reOrdertoIndices(IList<Tuple<int, int>> indices) {
     131    public void reOrderToIndices(IList<System.Tuple<int, int>> indices) {
    133132      foreach (string variableName in preprocessingData.VariableNames) {
    134133        if (preprocessingData.IsType<double>(variableName)) {
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingDataManipulation.cs

    r10253 r10256  
    22using System.Collections.Generic;
    33namespace HeuristicLab.DataPreprocessing {
    4   interface IPreprocessingDataManipulation {
     4  public interface IPreprocessingDataManipulation {
     5    void reOrderToIndices(IEnumerable<int> indices);
    56    void reOrderToIndices(IList<Tuple<int, int>> indices);
    67    void ReplaceIndicesByAverageValue(string variableName, IEnumerable<int> indices);
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataPreprocessingView.cs

    r10254 r10256  
    4040
    4141    private void InitializeContents() {
    42       dataGridContent = new DataGridContent(new DataGridLogic(Content != null ? this.Content.Data : null));
     42      IPreprocessingData data = Content != null ? this.Content.Data : null;
     43      ISearchLogic searchLogic = new SearchLogic(data);
     44      dataGridContent = new DataGridContent(new DataGridLogic(data), new PreprocessingDataManipulation(data, searchLogic, new StatisticsLogic(data, searchLogic)));
    4345
    4446      listViewItemItemMapping = new Dictionary<ListViewItem, IItem>();
Note: See TracChangeset for help on using the changeset viewer.