首页> 中文期刊> 《计算机应用与软件》 >面向对象软件度量因子的幂律分布研究

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

         

摘要

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.%结合幂律分布的研究方法对面向对象软件度量的结果进行研究,探讨不同结构层次软件度量中出现的长尾分布现象.基于4个大型Java开源项目,分别对类代码长度、类属性个数和类方法数这3个影响软件质量的主要度量因子进行度量.度量结果拟合幂律分布,采用极大似然估计法对拟合的幂律分布形状参数进行估计,并使用基于拔靴法的假设检验方法评估拟合效果.通过对3个度量因子统计结果研究发现,幂律分布存在于大部分统计结果的尾部.利用度量因子拟合的幂律分布函数,在互补累积分布图中找到偏离拟合幂律分布函数较远的类,可以在这些类中发现代码质量问题.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号