面向对象软件度量因子的幂律分布研究  被引量:4

STUDY ON POWER-LAW DISTRIBUTION OF FACTOR FOR OBJECT-ORIENTED SOFTWARE METRICS

在线阅读下载全文

作  者:冼伟成 刘伟[1,2] 刘宏韬 胡志刚[1] 

机构地区:[1]中南大学软件学院,湖南长沙410075 [2]湖南中医药大学管理与信息工程学院,湖南长沙410208

出  处:《计算机应用与软件》2018年第1期9-14,141,共7页Computer Applications and Software

基  金:国家自然科学基金项目(61272148)

摘  要:结合幂律分布的研究方法对面向对象软件度量的结果进行研究,探讨不同结构层次软件度量中出现的长尾分布现象。基于4个大型Java开源项目,分别对类代码长度、类属性个数和类方法数这3个影响软件质量的主要度量因子进行度量。度量结果拟合幂律分布,采用极大似然估计法对拟合的幂律分布形状参数进行估计,并使用基于拔靴法的假设检验方法评估拟合效果。通过对3个度量因子统计结果研究发现,幂律分布存在于大部分统计结果的尾部。利用度量因子拟合的幂律分布函数,在互补累积分布图中找到偏离拟合幂律分布函数较远的类,可以在这些类中发现代码质量问题。In this paper, the method of power-law distribution was used to study the results of object-oriented software metrics, and the long tailed distribution in different levels of software metrics was discussed. Based on four large Java open source projects, three major metrics affecting software quality were measured, such as class code length, class attribute number, and class method number. First, we utilized the measurements to fit the power-law distribution, and the maximum likelihood estimation method was used to estimate the shape parameter of the fitted power-law distribution. Then the hypothesis test method based on the bootstrap method was used to evaluate the fitting effect. Moreover, it was found that the power-law distribution existed at the tail of most statistical results by studying the statistical results of three metric factors. After fitting the power-law distribution function to the statistical result, it will lead to code quality issues in CCDF plots if we find that the measurement result of deviation from the fitting function is large.

关 键 词:幂律分布 极大似然估计 面向对象度量 代码质量 

分 类 号:TP3[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象