Changeset 4768


Ignore:
Timestamp:
11/11/10 00:25:47 (8 years ago)
Author:
mkommend
Message:

Added Minimum and Maximum to BoxPlot statistics (ticket #1262).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBoxPlotView.cs

    r4721 r4768  
    182182
    183183    private void UpdateStatistics() {
    184       DoubleMatrix matrix = new DoubleMatrix(7, seriesCache.Count);
     184      DoubleMatrix matrix = new DoubleMatrix(9, seriesCache.Count);
    185185      matrix.SortableView = false;
    186186      List<string> columnNames = new List<string>();
     
    207207      }
    208208      matrix.ColumnNames = columnNames;
    209       matrix.RowNames = new string[] { "Count", "Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };
     209      matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };
    210210
    211211      for (int i = 0; i < seriesCache.Count; i++) {
     
    213213        double[] seriesValues = series.Points.Select(p => p.YValues[0]).OrderBy(d => d).ToArray();
    214214        matrix[0, i] = seriesValues.Length;
    215         matrix[1, i] = seriesValues.Average();
    216         matrix[2, i] = seriesValues.Median();
    217         matrix[3, i] = seriesValues.StandardDeviation();
    218         matrix[4, i] = seriesValues.Variance();
    219         matrix[5, i] = seriesValues.Percentile(0.25);
    220         matrix[6, i] = seriesValues.Percentile(0.75);
     215        matrix[1, i] = seriesValues.Min();
     216        matrix[2, i] = seriesValues.Max();
     217        matrix[3, i] = seriesValues.Average();
     218        matrix[4, i] = seriesValues.Median();
     219        matrix[5, i] = seriesValues.StandardDeviation();
     220        matrix[6, i] = seriesValues.Variance();
     221        matrix[7, i] = seriesValues.Percentile(0.25);
     222        matrix[8, i] = seriesValues.Percentile(0.75);
    221223      }
    222224      statisticsMatrixView.Content = matrix;
Note: See TracChangeset for help on using the changeset viewer.