add median and 90% percentile

This commit is contained in:
2017-11-18 09:28:41 +01:00
parent f8c03c434e
commit 995558588a
3 changed files with 5 additions and 1 deletions

View File

@@ -36,6 +36,8 @@ class PlotSettingsTransformer {
switch (aggregate) {
case NONE:return new NullAggregate();
case MEAN:return new MeanAggregate();
case MEDIAN:return new PercentileAggregate(0.50);
case PERCENTILE90:return new PercentileAggregate(0.90);
case PERCENTILE95:return new PercentileAggregate(0.95);
case PERCENTILE99:return new PercentileAggregate(0.99);
case PERCENTILE999:return new PercentileAggregate(0.999);

View File

@@ -1,5 +1,5 @@
package org.lucares.pdbui.domain;
public enum Aggregate {
NONE, MEAN, PERCENTILE95, PERCENTILE99, PERCENTILE999
NONE, MEAN, MEDIAN, PERCENTILE90, PERCENTILE95, PERCENTILE99, PERCENTILE999
}