A Correlation Analysis between Halstead Complexity Measures and other Software Measures

被引:1
作者
Coimbra, Rodrigo Tavares [1 ]
de Resende, Antonio Maria P. [1 ]
Terra, Ricardo [1 ]
机构
[1] Univ Fed Lavras, Dept Ciencia Comp, Lavras, MG, Brazil
来源
2018 XLIV LATIN AMERICAN COMPUTER CONFERENCE (CLEI 2018) | 2018年
关键词
Metrics; software measures; Halstead; Correlation Analysis; METRICS;
D O I
10.1109/CLEI.2018.00014
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Halstead Complexity Measures, proposed in 1977, analyze a software system independently of its underlying programming language (technology) based on the measures number of operators and operands. From these two measures, it calculates other measures namely vocabulary, length, volume, difficulty, programming effort, errors, and testing time. The problem, nevertheless, is that since then the Academy and Industry have been coming up with hundreds of new metrics that differ in their assertions and calculations. Therefore, the objective of this paper is to present a correlation analysis between the eleven Halstead measures and other 27 popular measures proposed over the decades (e.g., LOC, cyclomatic complexity, and efferent coupling) through the inspection of 97 open-source Java systems in order to (i) identify redundancy in measures and (ii) minimize the costs of monitoring and diagnosing software projects, facilitating the task of making measurements. As a result, we identified strong correlations between Halstead measures and other measures, mainly related to size such as quantity of methods, packages, attributes, etc. We also identified direct correlation of Halstead measurements with coupling measures named Afferent and Efferent Coupling, with values ranging from 0.802 to 0.931, which are quite close to the maximum value 1 for a correlation. These results demonstrate that-although there is no perfect correlation-there is enough correlation to hypothesize that there is an overlap of measures with different denominations whose measured results are equivalent.
引用
收藏
页码:31 / 39
页数:9
相关论文
共 31 条
  • [1] Abreu F. B., 1994, P 4 INT C SOFTW QUAL, V186, P1
  • [2] A Precise Method-Method Interaction-Based Cohesion Metric for Object-Oriented Classes
    Al Dallal, Jehad
    Briand, Lionel C.
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2012, 21 (02)
  • [3] Al Qutaish R.E., 2005, International Workshop on Software Measurement, P337
  • [4] Albrech A., 1979, PROC JOINT SHAREGUID, P83
  • [5] [Anonymous], 1990, IEEE STANDARD GLOSSA
  • [6] Bailey C. T., 1981, Performance Evaluation Review, V10, P189, DOI 10.1145/1010627.807928
  • [7] Bieman J. M., 1995, SIGSOFT Software Engineering Notes, P259, DOI 10.1145/223427.211856
  • [8] CCCC, 2015, SOFTW METR INV
  • [9] Chhabra Prachi, 2013, INT J COMPUTER SCI M, V3, P146
  • [10] A METRICS SUITE FOR OBJECT-ORIENTED DESIGN
    CHIDAMBER, SR
    KEMERER, CF
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (06) : 476 - 493