Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8503


Ignore:
Timestamp:
08/20/12 10:17:23 (12 years ago)
Author:
ascheibe
Message:

#1886 switched rows and columns of statistical tabular view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/RunCollectionStatisticalTabularView.cs

    r8502 r8503  
    155155      string rowName = (string)dataRowComboBox.SelectedItem;
    156156
    157       string[] rowNames = new string[] { "Count", "Minimum", "Maximum", "Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };
     157      string[] columnNames = new string[] { "Count", "Minimum", "Maximum", "Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };
    158158
    159159      var runs = Content.Where(x => x.Results.ContainsKey(resultName));
    160160
    161       StringMatrix dt = new StringMatrix(rowNames.Count(), runs.Count());
    162       dt.RowNames = rowNames;
    163       dt.ColumnNames = runs.Select(x => x.Name);
     161      StringMatrix dt = new StringMatrix(runs.Count(), columnNames.Count());
     162      dt.RowNames = runs.Select(x => x.Name);
     163      dt.ColumnNames = columnNames;
    164164
    165165      int i = 0;
     
    179179        double percentile75 = values.Percentile(0.75);
    180180
    181         dt[0, i] = cnt.ToString();
    182         dt[1, i] = min.ToString();
    183         dt[2, i] = max.ToString();
    184         dt[3, i] = avg.ToString();
    185         dt[4, i] = median.ToString();
    186         dt[5, i] = stdDev.ToString();
    187         dt[6, i] = variance.ToString();
    188         dt[7, i] = percentile25.ToString();
    189         dt[8, i] = percentile75.ToString();
     181        dt[i,0] = cnt.ToString();
     182        dt[i,1] = min.ToString();
     183        dt[i,2] = max.ToString();
     184        dt[i,3] = avg.ToString();
     185        dt[i,4] = median.ToString();
     186        dt[i,5] = stdDev.ToString();
     187        dt[i,6] = variance.ToString();
     188        dt[i,7] = percentile25.ToString();
     189        dt[i,8] = percentile75.ToString();
    190190
    191191        i++;
Note: See TracChangeset for help on using the changeset viewer.