Changeset 9455
- Timestamp:
- 05/07/13 00:18:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Clustering/ClusteringSolutionVisualizationView.cs
r8435 r9455 78 78 var rows = classes.Values.Select(x => x.Item2).Distinct().ToDictionary(c => c, c => new ScatterPlotDataRow(c, string.Empty, Enumerable.Empty<Point2D<double>>())); 79 79 80 var reduced = PCAReduce(Content.ProblemData.Dataset, range, Content.ProblemData.AllowedInputVariables , Content.Model);80 var reduced = PCAReduce(Content.ProblemData.Dataset, range, Content.ProblemData.AllowedInputVariables); 81 81 82 82 int idx = 0; … … 89 89 } 90 90 91 private static double[,] PCAReduce(Dataset dataset, IEnumerable<int> rows, IEnumerable<string> variables, IDataAnalysisModel model) { 92 var clusteringModel = model as IClusteringModel; 93 if (clusteringModel == null) return new double[0, 0]; 94 91 private static double[,] PCAReduce(Dataset dataset, IEnumerable<int> rows, IEnumerable<string> variables) { 95 92 var instances = rows.ToArray(); 96 93 var attributes = variables.ToArray();
Note: See TracChangeset
for help on using the changeset viewer.