|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.app.DescStats
Class to calculate and provide descriptive statistics for the metrics. The descriptive statistics calculated are:
| Constructor Summary | |
DescStats(DataTable dt,
float[] percentiles)
|
|
| Method Summary | |
float[] |
getDataArray(int eltype,
int metnum)
Access the numeric metric values for a metric, in ascending order. |
DataTable |
getDataTable()
Get an object to access the descriptive statistics via the DataTable
interface. |
float |
getMax(int eltype,
int metnum)
Return the maximum value for a metric. |
float |
getMean(int eltype,
int metnum)
Return the average value for a metric. |
float |
getMin(int eltype,
int metnum)
Return the minimum value for a metric. |
int |
getNumPercentiles()
Retrieve the number of percentiles that are to be calculated. |
int |
getNumVal(int eltype,
int metnum)
Return the number of valid numerical values for a metric. |
float |
getPercentile(int index)
Retrieve a particular percentile threshold. |
float |
getPercentile(int eltype,
int metnum,
int pind)
Return a percentile of the metric. |
float |
getStdDev(int eltype,
int metnum)
Return the standard deviation of a metric's distribution. |
float |
getSum(int eltype,
int metnum)
Return the sum of metric values across all design elements for a metric. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DescStats(DataTable dt,
float[] percentiles)
dt - Metric data for which to calculate the descriptive statistics.percentiles - The percentiles to calculate.| Method Detail |
public DataTable getDataTable()
DataTable
interface.
public int getNumVal(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
public float getMin(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
public float getMax(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
public float getMean(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
public float getStdDev(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
public float getSum(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
public float getPercentile(int eltype,
int metnum,
int pind)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.pind - Index of the percentile to calculate.
public int getNumPercentiles()
public float getPercentile(int index)
index - Index of the percentile to retrieve. Valid indices run
from 0 to getNumPercentiles()-1.
public float[] getDataArray(int eltype,
int metnum)
eltype - Metamodel element type ID for which the metric is defined.metnum - Index (column number) of the metric.
0...getNumVal(eltype,metnum)-1. The length of the
array can be larger than getNumVal() - the trailing
values must be ignored.
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||