Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9380 for branches


Ignore:
Timestamp:
04/18/13 16:06:51 (12 years ago)
Author:
ascheibe
Message:

#2031 use EnhancedStringConvertibleMatrixView instead of StringConvertibleMatrixView in ResultCorrelationView

Location:
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/ResultCorrelationView.cs

    r9353 r9380  
    3535    public ResultCorrelationView() {
    3636      InitializeComponent();
     37      stringConvertibleMatrixView.Minimum = -1.0;
     38      stringConvertibleMatrixView.Maximum = 1.0;
    3739    }
    3840
     
    153155      var runs = Content.Where(x => x.Results.ContainsKey(resultName) && x.Visible);
    154156
    155       StringMatrix dt = new StringMatrix(rowNames.Count(), columnNames.Count());
     157      DoubleMatrix dt = new DoubleMatrix(rowNames.Count(), columnNames.Count());
    156158      dt.RowNames = rowNames;
    157159      dt.ColumnNames = columnNames;
     
    168170          || resultRowVals.Contains(double.NegativeInfinity)
    169171          || resultRowVals.Contains(double.PositiveInfinity)) {
    170           dt[j, 0] = "X";
    171           dt[j++, 1] = "X";
     172          dt[j, 0] = double.NaN;
     173          dt[j++, 1] = double.NaN;
    172174        } else {
    173           dt[j, 0] = alglib.pearsoncorr2(resultVals.ToArray(), resultRowVals.ToArray()).ToString();
    174           dt[j++, 1] = alglib.spearmancorr2(resultVals.ToArray(), resultRowVals.ToArray()).ToString();
     175          dt[j, 0] = alglib.pearsoncorr2(resultVals.ToArray(), resultRowVals.ToArray());
     176          dt[j++, 1] = alglib.spearmancorr2(resultVals.ToArray(), resultRowVals.ToArray());
    175177        }
    176178      }
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/ResultCorrelationView.designer.cs

    r9353 r9380  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.stringConvertibleMatrixView = new HeuristicLab.Data.Views.StringConvertibleMatrixView();
     47      this.stringConvertibleMatrixView = new HeuristicLab.Data.Views.EnhancedStringConvertibleMatrixView();
    4848      this.label1 = new System.Windows.Forms.Label();
    4949      this.resultComboBox = new System.Windows.Forms.ComboBox();
     
    111111    #endregion
    112112
    113     private HeuristicLab.Data.Views.StringConvertibleMatrixView stringConvertibleMatrixView;
     113    private HeuristicLab.Data.Views.EnhancedStringConvertibleMatrixView stringConvertibleMatrixView;
    114114    private System.Windows.Forms.Label label1;
    115115    private System.Windows.Forms.ComboBox resultComboBox;
Note: See TracChangeset for help on using the changeset viewer.