期刊文献+

主成分分析和聚类分析在软件重构中的应用 被引量:15

Application of principle component analysis and cluster analysis on software refactorings
下载PDF
导出
摘要 重构是软件系统不断演化的关键之一,也是一项复杂而又困难的活动。传统的定位重构代码方法依赖开发者的观察和主观意识,耗时耗力,尤其在重构代码较多时。因此,提出了一套自动化定位重构的方法。该方法利用基于面向对象软件度量指标获取代码特征信息,使用相关性检验查验特征信息数据,应用主成分分析压缩和解释特征信息,应用聚类分析分类相似代码段,迅速准确定位重构。一个简单的实例表明该方法是简单有效的,并且优于传统方法。 Refactoring is one key issue during the software evolution, and is a complex and difficult task. The traditional method of locating refactorings mostly relies on observations and subjective perceptions, which is time consuming and effort wasting, especially when the number of codes needing refactoring is very large. Therefore an automatic method of locating refactorings is proposed. Using object-oriented metrics to collect the feature information of codes, using correlation test to check the feature information data, applying principle component analysis to compress and explain the feature information, applying cluster analysis to classify similar code segment, it located refactorings quickly and accurately. A simple case demonstrates that the method is simple and efficient, and outperforms the conventional method.
出处 《计算机工程与设计》 CSCD 北大核心 2009年第2期365-369,共5页 Computer Engineering and Design
基金 国家自然科学基金项目(60573082) 国家863高技术研究发展计划基金项目(2006AA01Z182)
关键词 主成分分析 聚类分析 度量 重构 软件维护 principle component analysis cluster analysis metrics refactoring software maintenance
  • 相关文献

参考文献10

  • 1Tom Mens,Tom Toure.A survey of software refactoring[J].IEEE Transactions on Software Engineering,2004,30(2): 126-139.
  • 2Fowler M.Refactoring: Improving the design of existing programs[M] .Boston,USA:Addison-Wesley, 1999.
  • 3Kataoka Y, Emst M D,Griswold W G,et al.Automated support for program refactoring using invariants[C].IEEE International Conference on Software Maintenance(ICSM'01),2001.
  • 4Chidamber S R,Kemerer C F.A metrics suite for object-oriented design[J].IEEE Transactions on Software Engineering,1994,20 (6):476-493.
  • 5Simon F, Steinbr uckner F, Lewerentz C.Metrics based refactoring[C].Proc European Conf Software Maintenance and Reengineering,2001.
  • 6Tahvildari L, Kontogiannis K. A metric-based approach to enhance design quality through meta-pattern transformations[C]. Proc European Conf Software Maintenance and Reengineering, 2003.
  • 7Henderson-Sellers B.Object-oriented metrics: Measures of complexity[M].New York,USA:Prentice-Hall, 1996.
  • 8Laurie Williams, Dright ho, Sarah Smith. Software metrics in eclipse[EB/OL], http://open.ncsu.edu/se/tutorials/metrics/.
  • 9Richard A Johnson,Dean W Wichern.实用多元统计分析[M].陆璇译.4版.北京:清华大学出版社,2001:48.
  • 10张楚润.多元统计分析[M].北京:科学出版社,2006.

共引文献4

同被引文献156

引证文献15

二级引证文献99

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部