Class HistogramPlot.HistogramBin

    • Field Detail

      • startX

        private final double startX
      • endX

        private final double endX
      • count

        private int count
      • sum

        private float sum
      • squaredSum

        private float squaredSum
      • min

        private float min
      • max

        private float max
    • Constructor Detail

      • HistogramBin

        private HistogramBin​(float startX,
                             float endX)
        Create a new HistogramBin.
        Parameters:
        startX - The min x-axis values for this bin
        endX - The max x-axis value for this bin
    • Method Detail

      • getStartX

        public double getStartX()
      • getEndX

        public double getEndX()
      • addMeasurement

        public void addMeasurement​(float y)
        Add a measurement to this bin. Used if plotting values other than HistogramPlot.YAggregate.COUNT. This method increases the count and updates the sum, max and min values as required.
        Parameters:
        y - The y value to add
      • getCount

        public float getCount()
        Get the number of values in this bin.
      • getMin

        public float getMin()
        Get the minumum of all values in this bin. The value is not available if plotting the HistogramPlot.YAggregate.COUNT.
      • getMax

        public float getMax()
        Get the maximum of all values in this bin. The value is not available if plotting the HistogramPlot.YAggregate.COUNT.
      • getStdev

        public float getStdev()
        Get the standard deviation of all values in this bin. The value is not available if plotting the HistogramPlot.YAggregate.COUNT.