net.sourceforge.pmd.stat
Class Metric

java.lang.Object
  extended by net.sourceforge.pmd.stat.Metric

public class Metric
extends Object

This class holds all sorts of statistical information.

Author:
David Dixon-Peugh

Constructor Summary
Metric(String name, int count, double total, double low, double high, double mean, double stddev)
          Creates a new metric with the given information.
 
Method Summary
 double getAverage()
           
 int getCount()
           
 double getHighValue()
           
 double getLowValue()
           
 String getMetricName()
           
 double getStandardDeviation()
           
 double getTotal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metric

public Metric(String name,
              int count,
              double total,
              double low,
              double high,
              double mean,
              double stddev)
Creates a new metric with the given information.

Parameters:
name - the metric's name
count - count of occurrences
total - the total value of the metric
low - the lowest value of the metric
high - the highest value of the metric
mean - the mean value
stddev - the standard deviation
Method Detail

getMetricName

public String getMetricName()

getLowValue

public double getLowValue()

getHighValue

public double getHighValue()

getAverage

public double getAverage()

getStandardDeviation

public double getStandardDeviation()

getCount

public int getCount()

getTotal

public double getTotal()


Copyright © 2002-2015 InfoEther. All Rights Reserved.