Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/12/11 13:48:31 (13 years ago)
Author:
mkommend
Message:

#1597, #1609, #1640:

  • Corrected TableFileParser to handle empty rows correctly.
  • Refactored DataSet to store values in List<List> instead of a two-dimensional array.
  • Enable importing and storing string and datetime values.
  • Changed data access methods in dataset and adapted all concerning classes.
  • Changed interpreter to store the variable values for all rows during the compilation step.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Clustering/ClusteringSolutionEstimatedClusterView.cs

    r6642 r6740  
    8585          int[] clusters = Content.Model.GetClusterValues(Content.ProblemData.Dataset, Enumerable.Range(0, Content.ProblemData.Dataset.Rows)).ToArray();
    8686          var dataset = Content.ProblemData.Dataset;
    87           int columns = Content.ProblemData.AllowedInputVariables.Count() + 1;
    88           var columnsIndixes = Content.ProblemData.AllowedInputVariables.Select(x => dataset.GetVariableIndex(x)).ToList();
     87          int columns = Content.ProblemData.AllowedInputVariables.Count() + 1;         
    8988
    9089          double[,] values = new double[dataset.Rows, columns];
     
    9392
    9493            int column = 1;
    95             foreach (int columnIndex in columnsIndixes) {
    96               values[row, column] = dataset[row, columnIndex];
     94            foreach (var columnName in Content.ProblemData.AllowedInputVariables) {
     95              values[row, column] = dataset.GetDoubleValue(columnName, row);
    9796              column++;
    9897            }
Note: See TracChangeset for help on using the changeset viewer.