This project has retired. For details please refer to its
Attic page.
EWMA (REEF 0.14.0 API)
-
-
Constructor Summary
Constructors
Constructor and Description |
EWMA(double alpha,
long interval,
TimeUnit intervalUnit)
Constructs an EWMA object.
|
-
Method Summary
Methods
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.
|
-
-
Constructor Detail
-
EWMA
public EWMA(double alpha,
long interval,
TimeUnit intervalUnit)
Constructs an EWMA object.
- Parameters:
alpha
- interval
- intervalUnit
-
-
Method Detail
-
tick
public void tick()
Updates the rate.
Copyright © 2016 The Apache Software Foundation. All rights reserved.