Changeset 8861 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/FeatureCorrelationView.cs
- Timestamp:
- 10/30/12 13:33:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/FeatureCorrelationView.cs
r8833 r8861 23 23 using System.Collections.Generic; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Analysis;26 25 using HeuristicLab.Data; 27 26 using HeuristicLab.MainForm; … … 61 60 } else { 62 61 fcc.TryCancelCalculation(); 63 SetNewCorrelation(corr , calc);62 SetNewCorrelation(corr); 64 63 UpdateDataView(); 65 64 } … … 67 66 } 68 67 69 private void SetNewCorrelation(double[,] elements, IDependencyCalculator calc) { 70 DoubleRange range = calc.Interval; 71 HeatMap hm = new HeatMap(elements, "", range.End, range.Start); 72 hm.RowNames = Content.Dataset.DoubleVariables; 73 hm.ColumnNames = Content.Dataset.DoubleVariables; 74 currentCorrelation = hm; 68 private void SetNewCorrelation(double[,] elements) { 69 currentCorrelation = new DoubleMatrix(elements, 70 Content.Dataset.DoubleVariables, 71 Content.Dataset.DoubleVariables); 75 72 } 76 73 … … 80 77 } else { 81 78 correlationCache.SetCorrelation(e.Calculcator, e.Partition, e.Correlation); 82 SetNewCorrelation(e.Correlation , e.Calculcator);79 SetNewCorrelation(e.Correlation); 83 80 UpdateDataView(); 84 81 }
Note: See TracChangeset
for help on using the changeset viewer.