Package net.sourceforge.pmd.stat
Class Metric
- java.lang.Object
-
- net.sourceforge.pmd.stat.Metric
-
public class Metric extends java.lang.Object
This class holds all sorts of statistical information.- Author:
- David Dixon-Peugh
-
-
Constructor Summary
Constructors Constructor Description Metric(java.lang.String name, int count, double total, double low, double high, double mean, double stddev)
Creates a new metric with the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAverage()
int
getCount()
double
getHighValue()
double
getLowValue()
java.lang.String
getMetricName()
double
getStandardDeviation()
double
getTotal()
-
-
-
Constructor Detail
-
Metric
public Metric(java.lang.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 namecount
- count of occurrencestotal
- the total value of the metriclow
- the lowest value of the metrichigh
- the highest value of the metricmean
- the mean valuestddev
- the standard deviation
-
-
Method Detail
-
getMetricName
public java.lang.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()
-
-