Class ExperimentExplorerPlotServlet

  • All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

    public class ExperimentExplorerPlotServlet
    extends HttpServlet
    Plot servlet for generating plots from experiment explorer.
    Version:
    2.14
    Author:
    Nicklas
    See Also:
    Serialized Form
    Last modified
    $Date: 2016-05-26 08:56:52 +0200 (to, 26 maj 2016) $
    • Field Detail

      • maxWidth

        private int maxWidth
      • maxHeight

        private int maxHeight
      • defaultWidth

        private int defaultWidth
      • defaultHeight

        private int defaultHeight
      • defaultFormat

        private String defaultFormat
    • Constructor Detail

      • ExperimentExplorerPlotServlet

        public ExperimentExplorerPlotServlet()
    • Method Detail

      • calculateBoxAndWhiskerStatistics

        public org.jfree.data.statistics.BoxAndWhiskerItem calculateBoxAndWhiskerStatistics​(List<Float> values)
        Creates a box-and-whisker data holder for the given list of values. The data holder will be populated with the median and the 5th, 25th, 75th and 95th percentile values as follows:
        • median = BAWI.getMedian()
        • 5th percentile = BAWI.getMinRegularValue()
        • 25th percentile = BAWI.getQ1()
        • 75th percentile = BAWI.getQ3()
        • 95th percentile = BAWI.getMaxRegularValue()
        The mean and outlier values are currently not calculated (may change in the future).
        Parameters:
        values - The list of values which must be sorted in ascending order
        Returns:
        A BoxAndWhiskerItem object
      • getPercentile

        public float getPercentile​(List<? extends Number> values,
                                   int percentile)
        Calculates the percentile values from a sorted list of values. If the percentile falls between two elements in the list the average of the two nearest elements are used.
        Parameters:
        values - The values which must be sorted
        percentile - The percentile, a value between 0 and 100
        Returns:
        The percentile value, or Float.NaN if it could not be calculated