Class History

java.lang.Object
io.deephaven.base.stats.History

public class History extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final String[]
     
    static final int
     
    static final long[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    History(long now)
    Construct a new history, to start recording from now
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getAvg(int i, int d)
    Return the average value for the given interval and depth.
    long
    getLast(int i, int d)
    Return the last value for the given interval and depth.
    long
    getMax(int i, int d)
    Return the max value for the given interval and depth.
    long
    getMin(int i, int d)
    Return the min value for the given interval and depth.
    long
    getN(int i, int d)
    Return the N value for the given interval and depth.
    long
    getStdev(int i, int d)
    Return the stdev value for the given interval and depth.
    long
    getSum(int i, int d)
    Return the sum value for the given interval and depth.
    long
    getSum2(int i, int d)
    Return the sum2 value for the given interval and depth.
    static int
     
    int
    update(Value v, long now)
    Update the depth-zero history for all intervals, and begin new intervals for those whose depth-zero histories are now in the past.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • History

      public History(long now)
      Construct a new history, to start recording from now
  • Method Details

    • intervalIndex

      public static int intervalIndex(String s)
    • update

      public int update(Value v, long now)
      Update the depth-zero history for all intervals, and begin new intervals for those whose depth-zero histories are now in the past.
      Returns:
      the highest-numbered interval which has been newly started.
    • getLast

      public long getLast(int i, int d)
      Return the last value for the given interval and depth.
    • getSum

      public long getSum(int i, int d)
      Return the sum value for the given interval and depth.
    • getSum2

      public long getSum2(int i, int d)
      Return the sum2 value for the given interval and depth.
    • getN

      public long getN(int i, int d)
      Return the N value for the given interval and depth.
    • getMax

      public long getMax(int i, int d)
      Return the max value for the given interval and depth.
    • getMin

      public long getMin(int i, int d)
      Return the min value for the given interval and depth.
    • getAvg

      public long getAvg(int i, int d)
      Return the average value for the given interval and depth.
    • getStdev

      public long getStdev(int i, int d)
      Return the stdev value for the given interval and depth.