Sciweavers

JOT
2016

When do Software Complexity Metrics Mean Nothing? - When Examined out of Context

8 years 18 days ago
When do Software Complexity Metrics Mean Nothing? - When Examined out of Context
This paper places its attention on a familiar phenomena: that code metrics such as lines of code are extremely context dependent and their distribution differs from project to project. We apply visual inspection, as well as statistical reasoning and testing, to show that such metric values are so sensitive to context, that their measurement in one project offers little prediction regarding their measurement in another project. On the positive side, we show that context bias can be neutralized, at least for the majority of metrics that we considered, by what we call Log Normal Standardization (LNS). Concretely, the LNS transformation is obtained by shifting (by subtracting the mean) and scaling (by dividing by the standard deviation) of the log of a metric value. Thus, we conclude that the LNS-transformed-, are to be preferred over the plain-, values of metrics, especially in comparing modules from different projects. Conversely, the LNS-transformation suggests that the “context biasâ...
Joseph Yossi Gil, Gal Lalouche
Added 07 Apr 2016
Updated 07 Apr 2016
Type Journal
Year 2016
Where JOT
Authors Joseph Yossi Gil, Gal Lalouche
Comments (0)