An empirical investigation into the effect of slice types on slice-based cohesion metrics

An empirical investigation into the effect of slice types on slice-based cohesion metrics
复制标题

DOI:
10.1016/j.infsof.2016.04.001
复制
发表时间:
2016-07
期刊:
Inf. Softw. Technol.
影响因子:
--
通讯作者:
Yibiao Yang;Yangyang Zhao;Changsong Liu;Hongmin Lu;Yuming Zhou;Baowen Xu
Yibiao Yang;Yangyang Zhao;Changsong Liu;Hongmin Lu;Yuming Zhou;Baowen Xu
中科院分区:
其他
文献类型:
--
作者:
Yibiao Yang;Yangyang Zhao;Changsong Liu;Hongmin Lu;Yuming Zhou;Baowen Xu

文献摘要

相似文献

上下文对于计算基于切片的内聚度量,端切片还是度量切片更可取存在争议。然而,到目前为止,还没有达成共识,关于这个issue.<$We的目的是调查之间的关系结束切片为基础的和基于度量切片的凝聚力metrics,然后确定哪种类型的切片是更可取的计算基于切片的凝聚力metrics.MethodWe使用了四十广泛使用的开源软件系统进行研究。首先,我们计算基于结束切片和基于度量切片的内聚度量的基线值。然后,我们研究它们与模块大小的关系。最后,我们采用相关性分析和主成分分析,以分析之间的关系结束切片为基础的和度量切片为基础的内聚metrics.ResultsEnd-slice为基础的和度量切片为基础的内聚metrics有相似的基线度量值。此外,它们表现出类似的负相关模块的大小。特别是,从相关分析和主成分分析的结果表明,他们基本上测量相同的凝聚力dimensions.ConclusionFrom度量值的观点,有端切片为基础的和度量切片为基础的凝聚力指标之间的差异不大。因此,我们建议在实践中选择结束切片来计算基于切片的内聚度量,因为可以避免数据收集所涉及的额外成本。
ContextThere is a debate about whether end slice or metric slice is preferable for computing slice-based cohesion metrics. However, up till now, there is no consensus about this issue.ObjectiveWe aim to investigate the relationship between end-slice-based and metric-slice-based cohesion metrics and then determine which type of slice is preferable for computing slice-based cohesion metrics.MethodWe used forty widely used open-source software systems to conduct the study. First, we compute the baseline values for end-slice-based and metric-slice-based cohesion metrics. Then, we investigate their relationships with module size. Finally, we employ correlation analysis and principal component analysis to analyze the relationships between end-slice-based and metric-slice-based cohesion metrics.ResultsEnd-slice-based and metric-slice-based cohesion metrics have similar baseline metric values. Furthermore, they exhibit a similar negative correlation with module size. In particular, the results from correlation analysis and principal component analysis reveal that they essentially measure the same cohesion dimensions.ConclusionFrom the viewpoint of metric values, there is little difference between end-slice-based and metric-slice-based cohesion metrics. We hence recommend choosing end slice for computing slice-based cohesion metrics in practice, as extra cost involved in data collection could be avoided.