public interface MovingAverages
Meter
.
Included implementations are:
ExponentialMovingAverages
exponential decaying average similar to the top
Unix command.
SlidingTimeWindowMovingAverages
simple (unweighted) moving average
Modifier and Type | Method and Description |
---|---|
double |
getM15Rate()
Returns the fifteen-minute moving average rate
|
double |
getM1Rate()
Returns the one-minute moving average rate
|
double |
getM5Rate()
Returns the five-minute moving average rate
|
void |
tickIfNecessary()
Tick the internal clock of the MovingAverages implementation if needed
(according to the internal ticking interval)
|
void |
update(long n)
Update all three moving averages with n events having occurred since the last update.
|
void tickIfNecessary()
void update(long n)
n
- double getM1Rate()
double getM5Rate()
double getM15Rate()
Copyright © 2021. All rights reserved.