public class ExperimentExplorerPlotServlet extends HttpServlet
Modifier and Type | Class and Description |
---|---|
static class |
ExperimentExplorerPlotServlet.ColumnKey
Uses as a column key in the plots.
|
Modifier and Type | Field and Description |
---|---|
private String |
defaultFormat |
private int |
defaultHeight |
private int |
defaultWidth |
private int |
maxHeight |
private int |
maxWidth |
private static long |
serialVersionUID |
Constructor and Description |
---|
ExperimentExplorerPlotServlet() |
Modifier and Type | Method and Description |
---|---|
BoxAndWhiskerItem |
calculateBoxAndWhiskerStatistics(List<Float> values)
Creates a box-and-whisker data holder for the given list of values.
|
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
float |
getPercentile(List<? extends Number> values,
int percentile)
Calculates the percentile values from a sorted list of values.
|
void |
init() |
private void |
saveImageToFile(DbControl dc,
BufferedImage image,
String path,
String format,
boolean overwrite) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static final long serialVersionUID
private int maxWidth
private int maxHeight
private int defaultWidth
private int defaultHeight
private String defaultFormat
public void init() throws ServletException
init
in class GenericServlet
ServletException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doGet
in class HttpServlet
IOException
ServletException
private void saveImageToFile(DbControl dc, BufferedImage image, String path, String format, boolean overwrite) throws IOException
IOException
public BoxAndWhiskerItem calculateBoxAndWhiskerStatistics(List<Float> values)
values
- The list of values which must be sorted in ascending orderpublic float getPercentile(List<? extends Number> values, int percentile)
values
- The values which must be sortedpercentile
- The percentile, a value between 0 and 100