1 4 package net.sourceforge.pmd.stat; 5 6 11 public class Metric { 12 private String metricName = null; 13 private int count = 0; 14 private double total = 0.0; 15 private double low = -1.0; 16 private double high = -1.0; 17 private double mean = -1.0; 18 private double stddev = -1.0; 19 20 public Metric(String name, int count, double total, double low, double high, double mean, double stddev) { 21 this.metricName = name; 22 this.low = low; 23 this.high = high; 24 this.mean = mean; 25 this.stddev = stddev; 26 this.count = count; 27 this.total = total; 28 } 29 30 public String getMetricName() { 31 return metricName; 32 } 33 34 public double getLowValue() { 35 return low; 36 } 37 38 public double getHighValue() { 39 return high; 40 } 41 42 public double getAverage() { 43 return mean; 44 } 45 46 public double getStandardDeviation() { 47 return stddev; 48 } 49 50 public int getCount() { 51 return count; 52 } 53 54 public double getTotal() { 55 return total; 56 } 57 } 58 | Popular Tags |