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

Application of principle component analysis and cluster analysis on software refactorings

在线阅读下载全文

作  者:方晨[1,2] 杨叶[1,2] 伍书剑[1,2] 

机构地区:[1]中国科学院软件研究所互联网软件技术实验室,北京100190 [2]中国科学院研究生院,北京100049

出  处:《计算机工程与设计》2009年第2期365-369,共5页Computer Engineering and Design

基  金:国家自然科学基金项目(60573082);国家863高技术研究发展计划基金项目(2006AA01Z182)

摘  要:重构是软件系统不断演化的关键之一,也是一项复杂而又困难的活动。传统的定位重构代码方法依赖开发者的观察和主观意识,耗时耗力,尤其在重构代码较多时。因此,提出了一套自动化定位重构的方法。该方法利用基于面向对象软件度量指标获取代码特征信息,使用相关性检验查验特征信息数据,应用主成分分析压缩和解释特征信息,应用聚类分析分类相似代码段,迅速准确定位重构。一个简单的实例表明该方法是简单有效的,并且优于传统方法。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.

关 键 词:主成分分析 聚类分析 度量 重构 软件维护 

分 类 号:TP311.53[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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