Class PercentileAggregator
-
- All Implemented Interfaces:
-
org.apache.jmeter.report.processor.Aggregator
public class PercentileAggregator implements Aggregator
The class PercentileAggregator is used to get percentile from samples.
- Since:
3.0
-
-
Constructor Summary
Constructors Constructor Description PercentileAggregator(double index)
Instantiates a new percentile aggregator. PercentileAggregator(PercentileAggregator lastAggregator)
-
Method Summary
Modifier and Type Method Description long
getCount()
Gets the number of aggregated values. double
getResult()
Gets the result of the aggregation using stored values. void
addValue(double value)
Adds the specified value to the storage of the current aggregator. void
reset()
Reset the state of the aggregator. -
-
Constructor Detail
-
PercentileAggregator
PercentileAggregator(double index)
Instantiates a new percentile aggregator.- Parameters:
index
- the index of the percentile
-
PercentileAggregator
PercentileAggregator(PercentileAggregator lastAggregator)
- Parameters:
lastAggregator
- PercentileAggregator
-
-
Method Detail
-
getCount
long getCount()
Gets the number of aggregated values.
- Returns:
the number of aggregated values
-
getResult
double getResult()
Gets the result of the aggregation using stored values.
- Returns:
the result of the aggregation.
-
addValue
void addValue(double value)
Adds the specified value to the storage of the current aggregator.
- Parameters:
value
- the value to aggregate
-
reset
void reset()
Reset the state of the aggregator.
-
-
-
-