Changeset 4768
- Timestamp:
- 11/11/10 00:25:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBoxPlotView.cs
r4721 r4768 182 182 183 183 private void UpdateStatistics() { 184 DoubleMatrix matrix = new DoubleMatrix( 7, seriesCache.Count);184 DoubleMatrix matrix = new DoubleMatrix(9, seriesCache.Count); 185 185 matrix.SortableView = false; 186 186 List<string> columnNames = new List<string>(); … … 207 207 } 208 208 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" }; 210 210 211 211 for (int i = 0; i < seriesCache.Count; i++) { … … 213 213 double[] seriesValues = series.Points.Select(p => p.YValues[0]).OrderBy(d => d).ToArray(); 214 214 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); 221 223 } 222 224 statisticsMatrixView.Content = matrix;
Note: See TracChangeset
for help on using the changeset viewer.