Constructor and Description |
---|
EWMA(double alpha,
long interval,
TimeUnit intervalUnit)
Constructs an EWMA object.
|
Modifier and Type | Method and Description |
---|---|
double |
getRate(TimeUnit rateUnit)
Gets the rate.
|
void |
tick()
Updates the rate.
|
void |
update(long n)
Updates the EWMA with a new value.
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.