add plots for percentiles

This commit is contained in:
ahr
2017-11-06 16:57:22 +01:00
parent 92dde94443
commit 64db4c48a2
19 changed files with 301 additions and 115 deletions

View File

@@ -1,11 +1,11 @@
package org.lucares.pdbui;
import org.lucares.pdb.plot.api.AggreateInternal;
import org.lucares.pdb.plot.api.AggregateHandler;
import org.lucares.pdb.plot.api.AxisScale;
import org.lucares.pdb.plot.api.Limit;
import org.lucares.pdb.plot.api.MeanAggregate;
import org.lucares.pdb.plot.api.NullAggregate;
import org.lucares.pdb.plot.api.PercentileAggregate;
import org.lucares.pdb.plot.api.PlotSettings;
import org.lucares.pdbui.domain.Aggregate;
import org.lucares.pdbui.domain.LimitBy;
@@ -36,9 +36,9 @@ class PlotSettingsTransformer {
switch (aggregate) {
case NONE:return new NullAggregate();
case MEAN:return new MeanAggregate();
case PERCENTILE95:return new NullAggregate();
case PERCENTILE99:return new NullAggregate();
case PERCENTILE999:return new NullAggregate();
case PERCENTILE95:return new PercentileAggregate(0.95);
case PERCENTILE99:return new PercentileAggregate(0.99);
case PERCENTILE999:return new PercentileAggregate(0.999);
}
throw new IllegalStateException("unhandled enum: " + aggregate);
}