Class AveragedMetric

  • All Implemented Interfaces:
    IMetric

    public class AveragedMetric
    extends Object
    implements IMetric
    A helper class that collects data points for a given metric and provides basic statistical functions.
    • Constructor Detail

      • AveragedMetric

        public AveragedMetric​(String name)
      • AveragedMetric

        public AveragedMetric​(String name,
                              Units units)
      • AveragedMetric

        public AveragedMetric​(IMetric metric)
    • Method Detail

      • addDataPoint

        public void addDataPoint​(double dataPoint)
      • discardOutliers

        public void discardOutliers()
      • getMin

        public double getMin()
      • getMax

        public double getMax()
      • getAvg

        public double getAvg()
      • getStdDev

        public double getStdDev()
      • toJson

        public void toJson​(org.json.JSONArray metricArray)
      • getValue

        public double getValue()
        Specified by:
        getValue in interface IMetric