Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/15 18:00:54 (9 years ago)
Author:
abeham
Message:

#2274: Fixed bug in cluster visualization view and added nicer bounds in scatter plot

File:
1 edited

Legend:

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

    r12509 r12614  
    8181
    8282      int idx = 0;
     83      var oneDim = reduced.GetLength(1) == 1;
    8384      foreach (var r in range) {
    84         rows[classes[r].Item2].Points.Add(new Point2D<double>(reduced[idx, 0], reduced[idx, 1]));
     85        Point2D<double> point;
     86        point = oneDim ? new Point2D<double>(reduced[idx, 0], 0.0) : new Point2D<double>(reduced[idx, 0], reduced[idx, 1]);
     87        rows[classes[r].Item2].Points.Add(point);
    8588        idx++;
    8689      }
     
    106109      alglib.pcabuildbasis(data, instances.Length, attributes.Length, out info, out variances, out matrix);
    107110
    108       var result = new double[instances.Length, 2];
     111      var result = new double[instances.Length, matrix.GetLength(1)];
    109112      int r = 0;
    110113      foreach (var inst in instances) {
Note: See TracChangeset for help on using the changeset viewer.