public class MeanAggregator extends Object implements Aggregator
| Constructor and Description |
|---|
MeanAggregator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(double value)
Adds the specified value to the storage of the current aggregator.
|
long |
getCount()
Gets the number of aggregated values.
|
double |
getResult()
Gets the result of the aggregation using stored values.
|
void |
reset()
Reset the state of the aggregator.
|
public long getCount()
AggregatorgetCount in interface Aggregatorpublic double getResult()
AggregatorgetResult in interface Aggregatorpublic void addValue(double value)
AggregatoraddValue in interface Aggregatorvalue - the value to aggregatepublic void reset()
Aggregatorreset in interface AggregatorCopyright © 1998-2023 Apache Software Foundation. All Rights Reserved.