Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/12 13:33:10 (11 years ago)
Author:
sforsten
Message:

#1292:

  • put IDependencyCalculators in own directory
  • changed DoubleRange Interval to double Minimum\Maximum in IDependencyCalculator
  • AbstractFeatureCorrelationView now uses DoubleMatrix instead of HeatMap
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/FeatureCorrelationView.cs

    r8833 r8861  
    2323using System.Collections.Generic;
    2424using System.Windows.Forms;
    25 using HeuristicLab.Analysis;
    2625using HeuristicLab.Data;
    2726using HeuristicLab.MainForm;
     
    6160        } else {
    6261          fcc.TryCancelCalculation();
    63           SetNewCorrelation(corr, calc);
     62          SetNewCorrelation(corr);
    6463          UpdateDataView();
    6564        }
     
    6766    }
    6867
    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);
    7572    }
    7673
     
    8077      } else {
    8178        correlationCache.SetCorrelation(e.Calculcator, e.Partition, e.Correlation);
    82         SetNewCorrelation(e.Correlation, e.Calculcator);
     79        SetNewCorrelation(e.Correlation);
    8380        UpdateDataView();
    8481      }
Note: See TracChangeset for help on using the changeset viewer.