Class HistogramPower2

java.lang.Object
io.deephaven.base.stats.Value
io.deephaven.base.stats.HistogramPower2

public class HistogramPower2 extends Value
This class accumulates samples in a 64 bin histogram with the property that for a sample value of n, the bin index will be log2(n)+1 (offset by 1) since there are no unsinged numbers, and placing negative and 0 values in bin 0 preserves order, with maximum appearing in bin index 63 (max pos numbers)
  • Field Details

  • Constructor Details

    • HistogramPower2

      public HistogramPower2(long now)
  • Method Details

    • sample

      public void sample(long n)
      Overrides:
      sample in class Value
    • getHistogramString

      public String getHistogramString()
    • getHistogram

      public long[] getHistogram()
    • clear

      public void clear()
    • reset

      public void reset()
      Overrides:
      reset in class Value
    • getTypeTag

      public char getTypeTag()
      Specified by:
      getTypeTag in class Value