public class HarmonicMeanAccumulator extends SumAccumulator
Constructor and Description |
---|
HarmonicMeanAccumulator() |
Modifier and Type | Method and Description |
---|---|
void |
add(Double number)
Adds a value to the accumulator.
|
Double |
getResult()
Gets the accumulated result of currently added values.
|
void |
reset()
Resets the accumulator to the default state.
|
public void add(Double number)
Accumulator
add
in interface Accumulator<Double>
add
in class SumAccumulator
number
- The value to be accumulated.public Double getResult()
Accumulator
getResult
in interface Accumulator<Double>
getResult
in class SumAccumulator
public void reset()
Accumulator
reset
in interface Accumulator<Double>
reset
in class SumAccumulator
Copyright © 2010–2017 PerfCake Community. All rights reserved.