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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PercentileAggregator

        PercentileAggregator(double index)
        Instantiates a new percentile aggregator.
        Parameters:
        index - the index of the percentile
    • 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.