计算机应用与软件2018,Vol.35Issue(1):9-14,141,7.DOI:10.3969/j.issn.1000-386x.2018.01.002
面向对象软件度量因子的幂律分布研究
STUDY ON POWER-LAW DISTRIBUTION OF FACTOR FOR OBJECT-ORIENTED SOFTWARE METRICS
摘要
Abstract
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.关键词
幂律分布/极大似然估计/面向对象度量/代码质量Key words
Power-law distribution/Maximum likelihood estimation/Object-oriented metrics/Code quality分类
信息技术与安全科学引用本文复制引用
冼伟成,刘伟,刘宏韬,胡志刚..面向对象软件度量因子的幂律分布研究[J].计算机应用与软件,2018,35(1):9-14,141,7.基金项目
国家自然科学基金项目(61272148). (61272148)