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()
RunningAverageclone in interface RunningAverageclone in class java.lang.Objectpublic double currentValue()
currentValue in interface RunningAveragepublic void report(double d)
report in interface RunningAveraged - public double valueIfReported(double d)
RunningAveragevalueIfReported in interface RunningAveraged - the value to mimic reportingpublic long countReports()
countReports in interface RunningAveragepublic void report(long d)
report in interface RunningAveraged - public void changeMaxReports(int maxReports)
maxReports - public SimpleFieldSet exportFieldSet(boolean shortLived)
shortLived - public static void main(java.lang.String[] args)
args -