Detecting Bad Smells with Weight Based Distance Metrics Theory

Jiang Dexun, Ma Peijun, Su Xiaohong, Wang Tiantian
{"title":"Detecting Bad Smells with Weight Based Distance Metrics Theory","authors":"Jiang Dexun, Ma Peijun, Su Xiaohong, Wang Tiantian","doi":"10.1109/IMCCC.2012.74","DOIUrl":null,"url":null,"abstract":"Detecting bad smells in program design and implementation is a challenging task. Manual detection is proved to be time-consuming and inaccurate under complex situation. Weight based distance metrics and relevant conceptions are introduced in this paper, and the automatic approach for bad smells detection is proposed based on Jaccard distance. The conception of distance between entities and classes is defined and relevant computing formulas are applied in detecting. New weight based distance metrics theory is proposed to detect feature envy bad smell. This improved approach can express more detailed design quality and invoking relationship than the original distance metrics theory. With these improvements the automation of bad smells detection can be achieved with high accuracy. And then the approach is applied to detect bad smells in JFreeChart open source code. The experimental results show that the weight based distance metrics theory can detect the bad smell more accurately with low time complexity.","PeriodicalId":394548,"journal":{"name":"2012 Second International Conference on Instrumentation, Measurement, Computer, Communication and Control","volume":"83 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-12-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"14","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 Second International Conference on Instrumentation, Measurement, Computer, Communication and Control","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IMCCC.2012.74","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 14

Abstract

Detecting bad smells in program design and implementation is a challenging task. Manual detection is proved to be time-consuming and inaccurate under complex situation. Weight based distance metrics and relevant conceptions are introduced in this paper, and the automatic approach for bad smells detection is proposed based on Jaccard distance. The conception of distance between entities and classes is defined and relevant computing formulas are applied in detecting. New weight based distance metrics theory is proposed to detect feature envy bad smell. This improved approach can express more detailed design quality and invoking relationship than the original distance metrics theory. With these improvements the automation of bad smells detection can be achieved with high accuracy. And then the approach is applied to detect bad smells in JFreeChart open source code. The experimental results show that the weight based distance metrics theory can detect the bad smell more accurately with low time complexity.
基于权重距离度量理论的恶臭检测
检测程序设计和实现中的不良气味是一项具有挑战性的任务。在复杂的情况下,人工检测是费时且不准确的。介绍了基于权重的距离度量及其相关概念,提出了基于雅卡德距离的恶臭自动检测方法。定义了实体与类之间距离的概念,并应用相应的计算公式进行检测。提出了一种新的基于权重的距离度量理论来检测特征嫉妒气味。与原来的距离度量理论相比,这种改进的方法可以表达更详细的设计质量和调用关系。通过这些改进,可以实现恶臭检测的自动化和高精度。然后将该方法应用于JFreeChart开源代码中的不良气味检测。实验结果表明,基于权值的距离度量理论能够以较低的时间复杂度更准确地检测出恶臭。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信