A THEORETICAL AND EMPIRICAL ANALYSIS OF THREE SLICE-BASED METRICS FOR COHESION

被引:4
|
作者
Counsell, S. [1 ]
Hall, T. [1 ]
Bowes, D. [2 ]
机构
[1] Brunel Univ, Sch Informat Syst Comp & Math, Uxbridge UB8 3PH, Middx, England
[2] Univ Hertfordshire, Sch Comp Sci, Hatfield AL10 9AB, Herts, England
基金
英国工程与自然科学研究理事会;
关键词
Slicing; cohesion; metrics; OO; COMPREHENSION;
D O I
10.1142/S0218194010004888
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Sound empirical research suggests that we should analyze software metrics from a theoretical and practical perspective. This paper describes the result of an investigation into the respective merits of two cohesion-based metrics for program slicing. The Tightness and Overlap metrics were those originally proposed by Weiser for the procedural paradigm. We compare and contrast these two metrics with a third metric for the OO paradigm first proposed by Counsell et al. based on Hamming Distance and based on a matrix-based notation. We theoretically validated the three metrics using the properties of Kitchenham and then empirically validated the same three metrics; some revealing properties of the metrics were found as a result. In particular, that the OO-based metric was the most stable of the three; module length was not a confounding factor for the Hamming Distance-based metric; it was however for the two slice-based metrics supporting previous work by Meyers and Binkley. The number of module slices however, was found to be an even stronger influence on the values of the two slice-based metrics, whose near perfect correlation with each other suggests that they may be measuring the same software attribute. We calculated and then compared the three metrics using first, a set of manufactured, pre-determined modules as a preliminary analysis and second, approximately nine thousand functions from the modules of multiple versions of the Barcode system, used previously by Meyers and Binkley in their empirical study. The over-arching message of the research is that a combination of theoretical and empirical analysis can help significantly in comparing the viability and indeed choice of a metric or set of metrics. More specifically, although cohesion is a subjective measure, there are certain properties of a metric that are less desirable than others and it is these 'relative' features that distinguish metrics, make their comparison possible and their value more evident.
引用
收藏
页码:609 / 636
页数:28
相关论文
共 50 条
  • [1] An empirical study of slice-based cohesion and coupling metrics
    Meyers, Timothy M.
    Binkley, David
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2007, 17 (01)
  • [2] An empirical investigation into the effect of slice types on slice-based cohesion metrics
    Yang, Yibiao
    Zhao, Yangyang
    Liu, Changsong
    Lu, Hongmin
    Zhou, Yuming
    Xu, Baowen
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 75 : 90 - 104
  • [3] Slice-based cohesion metrics and software intervention
    Meyers, TM
    Binkley, D
    [J]. 11TH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2004, : 256 - 265
  • [4] Towards the Use of Slice-based Cohesion Metrics with Learning Analytics to Assess Programming Skills
    Kesselbacher, Max
    Bollin, Andreas
    [J]. 2021 THIRD INTERNATIONAL WORKSHOP ON SOFTWARE ENGINEERING EDUCATION FOR THE NEXT GENERATION (SEENG 2021), 2021, : 6 - 10
  • [5] Are Slice-Based Cohesion Metrics Actually Useful in Effort-Aware Post-Release Fault-Proneness Prediction? An Empirical Study
    Yang, Yibiao
    Zhou, Yuming
    Lu, Hongmin
    Chen, Lin
    Chen, Zhenyu
    Xu, Baowen
    Leung, Hareton
    Zhang, Zhenyu
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (04) : 331 - 357
  • [6] Slice-Based Cognitive Complexity Metrics for Defect Prediction
    Alqadi, Basma S.
    Maletic, Jonathan, I
    [J]. PROCEEDINGS OF THE 2020 IEEE 27TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER '20), 2020, : 411 - 422
  • [7] Alternate slice-based substructuring in three dimensions
    Mihai, L. Angela
    Craig, Alan W.
    [J]. IMA JOURNAL OF NUMERICAL ANALYSIS, 2009, 29 (03) : 508 - 538
  • [8] SLICE-based Trustworthiness Analysis system
    Hong, Kang-Woon
    Park, Dong-Hwan
    [J]. 2018 INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY CONVERGENCE (ICTC), 2018, : 1389 - 1390
  • [9] Slice-Based Analog Design
    Walker, Pablo
    Pedro Ochoa-Ricoux, Juan
    Abusleme, Angel
    [J]. IEEE ACCESS, 2021, 9 : 148164 - 148183
  • [10] Slice-based guided navigation for colonography
    Sudarsky, Sandra
    Geiger, Bernhard
    [J]. MEDICAL IMAGING 2007: PHYSIOLOGY, FUNCTION, AND STRUCTURE FROM MEDICAL IMAGES, 2007, 6511