public class MeanAggregator extends java.lang.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()
Aggregator
getCount
in interface Aggregator
public double getResult()
Aggregator
getResult
in interface Aggregator
public void addValue(double value)
Aggregator
addValue
in interface Aggregator
value
- the value to aggregatepublic void reset()
Aggregator
reset
in interface Aggregator
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.