class AggregateAbcMetricResult
An aggregate MetricResult implementation specifically for the ABC Metric.
Type | Name and description |
---|---|
Integer |
lineNumber |
Metric |
metric |
MetricLevel |
metricLevel |
Object |
value |
Constructor and description |
---|
AggregateAbcMetricResult
(Metric metric, MetricLevel metricLevel, Collection children, Integer lineNumber = null) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
calculateFunctions(Collection children) |
|
Object |
getAbcVector() |
|
Object |
getAt(String name) |
|
Object |
getAverageAbcVector() Return the average of this set of ABC vectors. |
|
int |
getCount() |
|
Object |
getTotalAbcVector() Return the sum of this set of ABC vectors. |
|
String |
toString() |
Return the average of this set of ABC vectors. Each component (A,B,C) of the result is calculated and averaged separately. The formula for each component is: (A1 + A2 + .. AN) / N and likewise for B and C values. Each component of the result vector is rounded down to an integer.
Return the sum of this set of ABC vectors. Each component (A,B,C) of the result is summed separately. The formula for each component is: A1 + A2 + .. AN and likewise for B and C values.
Groovy Documentation