Class Histogram


  • public class Histogram
    extends Object
    • Field Detail

      • breaks

        public float[] breaks
      • bins

        public long[] bins
      • count

        public transient long count
      • min

        public float min
      • max

        public float max
    • Constructor Detail

      • Histogram

        public Histogram​(float[] breaks)
      • Histogram

        public Histogram​(float[] breaks,
                         long[] bins,
                         float min,
                         float max)
      • Histogram

        public Histogram​(Histogram other)
    • Method Detail

      • copyFrom

        public void copyFrom​(Histogram other)
      • offer

        public void offer​(float d)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toBytes

        public byte[] toBytes()
      • asVisual

        public HistogramVisual asVisual()
        Returns a visual representation of a histogram object. Initially returns an array of just the min. and max. values but can also support the addition of quantiles.
        Returns:
        a visual representation of this histogram
      • fromBytes

        public static Histogram fromBytes​(byte[] bytes)