Package io.deephaven.base.stats
Class History
java.lang.Object
io.deephaven.base.stats.History
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionlong
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 the depth-zero history for all intervals, and begin new intervals for those whose depth-zero histories are now in the past.
-
Field Details
-
INTERVALS
public static final long[] INTERVALS -
INTERVAL_NAMES
-
INTERVAL_1S_INDEX
public static final int INTERVAL_1S_INDEX- See Also:
-
INTERVAL_10S_INDEX
public static final int INTERVAL_10S_INDEX- See Also:
-
INTERVAL_1M_INDEX
public static final int INTERVAL_1M_INDEX- See Also:
-
INTERVAL_5M_INDEX
public static final int INTERVAL_5M_INDEX- See Also:
-
INTERVAL_15M_INDEX
public static final int INTERVAL_15M_INDEX- See Also:
-
INTERVAL_TOTAL_INDEX
public static final int INTERVAL_TOTAL_INDEX- See Also:
-
DEPTH
public static final int DEPTH- See Also:
-
-
Constructor Details
-
History
public History(long now) Construct a new history, to start recording from now
-
-
Method Details
-
intervalIndex
-
update
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.
-