- Timestamp:
- 07/06/15 18:00:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Clustering/ClusteringSolutionVisualizationView.cs
r12509 r12614 81 81 82 82 int idx = 0; 83 var oneDim = reduced.GetLength(1) == 1; 83 84 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); 85 88 idx++; 86 89 } … … 106 109 alglib.pcabuildbasis(data, instances.Length, attributes.Length, out info, out variances, out matrix); 107 110 108 var result = new double[instances.Length, 2];111 var result = new double[instances.Length, matrix.GetLength(1)]; 109 112 int r = 0; 110 113 foreach (var inst in instances) {
Note: See TracChangeset
for help on using the changeset viewer.