Package net.sourceforge.pmd.stat
Class Metric
- java.lang.Object
-
- net.sourceforge.pmd.stat.Metric
-
@Deprecated public class Metric extends Object
Deprecated.seeStatisticalRule
This class holds all sorts of statistical information.- Author:
- David Dixon-Peugh
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
getAverage()
Deprecated.int
getCount()
Deprecated.double
getHighValue()
Deprecated.double
getLowValue()
Deprecated.String
getMetricName()
Deprecated.double
getStandardDeviation()
Deprecated.double
getTotal()
Deprecated.
-
-
-
Constructor Detail
-
Metric
public Metric(String name, int count, double total, double low, double high, double mean, double stddev)
Deprecated.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 String getMetricName()
Deprecated.
-
getLowValue
public double getLowValue()
Deprecated.
-
getHighValue
public double getHighValue()
Deprecated.
-
getAverage
public double getAverage()
Deprecated.
-
getStandardDeviation
public double getStandardDeviation()
Deprecated.
-
getCount
public int getCount()
Deprecated.
-
getTotal
public double getTotal()
Deprecated.
-
-