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 条
  • [21] Slice-Based Online Convolutional Dictionary Learning
    Zeng, Yijie
    Chen, Jichao
    Huang, Guang-Bin
    [J]. IEEE TRANSACTIONS ON CYBERNETICS, 2021, 51 (10) : 5116 - 5129
  • [22] Slice-based plan evaluation methods for three dimensional conformai radiotherapy treatment planning
    R. Prabhakar
    G. K. Rath
    [J]. Australasian Physical & Engineering Sciences in Medicine, 2009, 32 : 233 - 239
  • [23] Make Page Coloring More Efficient on Slice-based Three-Level Cache
    Li, Haifeng
    Lu, Tianyue
    Liu, Yuhang
    Chen, Mingyu
    [J]. 2019 IEEE 25TH INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS (ICPADS), 2019, : 310 - 317
  • [24] Slice-based plan evaluation methods for three dimensional conformal radiotherapy treatment planning
    Prabhakar, R.
    Rath, G. K.
    [J]. AUSTRALASIAN PHYSICAL & ENGINEERING SCIENCES IN MEDICINE, 2009, 32 (04) : 233 - 239
  • [25] A Lightweight Slice-Based Quality of Service Manager for IoT
    Oliveira-Jr, Antonio
    Cardoso, Kleber
    Sousa, Filipe
    Moreira, Waldir
    [J]. IOT, 2020, 1 (01):
  • [26] A slice-based automatic hardware/software partitioning heuristic
    Parandeh-Afshar, H.
    Tootoonchian, A.
    Yousefpour, M.
    Fatemi, O.
    Hashemi, M.
    [J]. 2006 INTERNATIONAL CONFERENCE ON MICROELECTRONICS, 2007, : 150 - +
  • [27] Three-dimensional microwave tomography by a 2-D slice-based reconstruction algorithm
    Solimene, Raffaele
    Soldovieri, Francesco
    Prisco, Giancarlo
    Pierri, Rocco
    [J]. IEEE GEOSCIENCE AND REMOTE SENSING LETTERS, 2007, 4 (04) : 556 - 560
  • [28] Slice-based dynamic memory modelling - A case study
    Sivagurunathan, Y
    Harman, M
    Sivagurunathan, B
    [J]. 26TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, PROCEEDINGS, 2002, : 351 - 356
  • [29] Theoretical and empirical studies on the social cohesion
    Forse, Michel
    Langlois, Simon
    [J]. TOCQUEVILLE REVIEW, 2009, 30 (02): : 7 - 8
  • [30] Identifying High-Level Dependence Structures Using Slice-Based Dependence Analysis
    Li, Zheng
    [J]. 2009 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, CONFERENCE PROCEEDINGS, 2009, : 457 - 460