public final class DecayingKeyspaceAverage extends java.lang.Object implements RunningAverage, java.lang.Cloneable
Constructor and Description |
---|
DecayingKeyspaceAverage(BootstrappingDecayingRunningAverage a) |
DecayingKeyspaceAverage(double defaultValue,
int maxReports,
SimpleFieldSet fs) |
Modifier and Type | Method and Description |
---|---|
void |
changeMaxReports(int maxReports) |
DecayingKeyspaceAverage |
clone()
Copy the RunningAverage (create a snapshot).
|
long |
countReports() |
double |
currentValue() |
SimpleFieldSet |
exportFieldSet(boolean shortLived) |
static void |
main(java.lang.String[] args) |
void |
report(double d) |
void |
report(long d) |
double |
valueIfReported(double d)
Get what currentValue() would be if we reported some given value
|
public DecayingKeyspaceAverage(double defaultValue, int maxReports, SimpleFieldSet fs)
defaultValue
- maxReports
- fs
- public DecayingKeyspaceAverage(BootstrappingDecayingRunningAverage a)
a
- public DecayingKeyspaceAverage clone()
RunningAverage
clone
in interface RunningAverage
clone
in class java.lang.Object
public double currentValue()
currentValue
in interface RunningAverage
public void report(double d)
report
in interface RunningAverage
d
- public double valueIfReported(double d)
RunningAverage
valueIfReported
in interface RunningAverage
d
- the value to mimic reportingpublic long countReports()
countReports
in interface RunningAverage
public void report(long d)
report
in interface RunningAverage
d
- public void changeMaxReports(int maxReports)
maxReports
- public SimpleFieldSet exportFieldSet(boolean shortLived)
shortLived
- public static void main(java.lang.String[] args)
args
-