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.Algorithms.DataAnalysis/3.4/kMeans/KMeansClusteringUtil.cs

    r5809 r6740  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    2324using System.Linq;
    2425using HeuristicLab.Problems.DataAnalysis;
    25 using System;
    2626
    2727namespace HeuristicLab.Algorithms.DataAnalysis {
     
    4242          int col = 0;
    4343          foreach (var inputVariable in allowedInputVariables) {
    44             double d = center[col++] - dataset[inputVariable, row];
     44            double d = center[col++] - dataset.GetDoubleValue(inputVariable, row);
    4545            d = d * d; // square;
    4646            centerDistance += d;
     
    7373        double[] p = new double[allowedInputVariables.Count];
    7474        for (int i = 0; i < nCols; i++) {
    75           p[i] = dataset[allowedInputVariables[i], row];
     75          p[i] = dataset.GetDoubleValue(allowedInputVariables[i], row);
    7676        }
    7777        clusterPoints[clusterValues[clusterValueIndex++]].Add(p);
Note: See TracChangeset for help on using the changeset viewer.