• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

使用香农熵、雷尼熵和Tsallis熵的软件代码异味预测模型

Software Code Smell Prediction Model Using Shannon, Rényi and Tsallis Entropies.

作者信息

Gupta Aakanshi, Suri Bharti, Kumar Vijay, Misra Sanjay, Blažauskas Tomas, Damaševičius Robertas

机构信息

Department of Computer Science and Engineering, Amity School of Engineering and Technology, New Delhi 110061, India.

University School of Information, Communication and Technology, Guru Gobind Singh Indraprastha University, New Delhi 110078, India.

出版信息

Entropy (Basel). 2018 May 17;20(5):372. doi: 10.3390/e20050372.

DOI:10.3390/e20050372
PMID:33265462
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC7512890/
Abstract

The current era demands high quality software in a limited time period to achieve new goals and heights. To meet user requirements, the source codes undergo frequent modifications which can generate the bad smells in software that deteriorate the quality and reliability of software. Source code of the open source software is easily accessible by any developer, thus frequently modifiable. In this paper, we have proposed a mathematical model to predict the bad smells using the concept of entropy as defined by the Information Theory. Open-source software Apache Abdera is taken into consideration for calculating the bad smells. Bad smells are collected using a detection tool from sub components of the Apache Abdera project, and different measures of entropy (Shannon, Rényi and Tsallis entropy). By applying non-linear regression techniques, the bad smells that can arise in the future versions of software are predicted based on the observed bad smells and entropy measures. The proposed model has been validated using goodness of fit parameters (prediction error, bias, variation, and Root Mean Squared Prediction Error (RMSPE)). The values of model performance statistics ( R 2 , adjusted R 2 , Mean Square Error (MSE) and standard error) also justify the proposed model. We have compared the results of the prediction model with the observed results on real data. The results of the model might be helpful for software development industries and future researchers.

摘要

当前时代要求在有限的时间内获得高质量的软件,以实现新的目标和高度。为了满足用户需求,源代码需要频繁修改,这可能会在软件中产生不良代码异味,从而降低软件的质量和可靠性。开源软件的源代码任何开发者都可以轻松访问,因此可以频繁修改。在本文中,我们提出了一个数学模型,利用信息论中定义的熵的概念来预测不良代码异味。计算不良代码异味时考虑了开源软件Apache Abdera。使用检测工具从Apache Abdera项目的子组件中收集不良代码异味,并计算不同的熵度量(香农熵、雷尼熵和Tsallis熵)。通过应用非线性回归技术,基于观察到的不良代码异味和熵度量来预测软件未来版本中可能出现的不良代码异味。所提出的模型已使用拟合优度参数(预测误差、偏差、方差和均方根预测误差(RMSPE))进行了验证。模型性能统计量(R²、调整后的R²、均方误差(MSE)和标准误差)的值也证明了所提出模型的合理性。我们将预测模型的结果与实际数据的观察结果进行了比较。该模型的结果可能对软件开发行业和未来的研究人员有所帮助。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/dcd8fa252509/entropy-20-00372-g015.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/29a96dc1e4f9/entropy-20-00372-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/20e65b2dd537/entropy-20-00372-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/ce5383fe07e6/entropy-20-00372-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/69cf02d7027e/entropy-20-00372-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/cb8dadca9366/entropy-20-00372-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/eae4261685c4/entropy-20-00372-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/e25ca145b7d2/entropy-20-00372-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/76e0fef0049c/entropy-20-00372-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/b5f7380bc48b/entropy-20-00372-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/f4735ddaaf12/entropy-20-00372-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/d0160a36cfef/entropy-20-00372-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/ca3e8f8594b1/entropy-20-00372-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/4c59702c7d89/entropy-20-00372-g013.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/e67872a6776b/entropy-20-00372-g014.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/dcd8fa252509/entropy-20-00372-g015.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/29a96dc1e4f9/entropy-20-00372-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/20e65b2dd537/entropy-20-00372-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/ce5383fe07e6/entropy-20-00372-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/69cf02d7027e/entropy-20-00372-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/cb8dadca9366/entropy-20-00372-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/eae4261685c4/entropy-20-00372-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/e25ca145b7d2/entropy-20-00372-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/76e0fef0049c/entropy-20-00372-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/b5f7380bc48b/entropy-20-00372-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/f4735ddaaf12/entropy-20-00372-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/d0160a36cfef/entropy-20-00372-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/ca3e8f8594b1/entropy-20-00372-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/4c59702c7d89/entropy-20-00372-g013.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/e67872a6776b/entropy-20-00372-g014.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/35fd/7512890/dcd8fa252509/entropy-20-00372-g015.jpg

相似文献

1
Software Code Smell Prediction Model Using Shannon, Rényi and Tsallis Entropies.使用香农熵、雷尼熵和Tsallis熵的软件代码异味预测模型
Entropy (Basel). 2018 May 17;20(5):372. doi: 10.3390/e20050372.
2
A Quantitative Comparison between Shannon and Tsallis-Havrda-Charvat Entropies Applied to Cancer Outcome Prediction.应用于癌症预后预测的香农熵与Tsallis-Havrda-Charvat熵之间的定量比较
Entropy (Basel). 2022 Mar 22;24(4):436. doi: 10.3390/e24040436.
3
Equivalence between four versions of thermostatistics based on strongly pseudoadditive entropies.基于强伪加熵的四种热力统计等价性。
Phys Rev E. 2019 Dec;100(6-1):062135. doi: 10.1103/PhysRevE.100.062135.
4
On the --Mutual Information and the --Capacities.关于——互信息与——容量。 (原文中两个破折号处内容缺失,可能影响准确理解)
Entropy (Basel). 2021 Jun 1;23(6):702. doi: 10.3390/e23060702.
5
Empirical study of the relationship between design patterns and code smells.设计模式与代码异味关系的实证研究。
PLoS One. 2020 Apr 16;15(4):e0231731. doi: 10.1371/journal.pone.0231731. eCollection 2020.
6
A Developer-Oriented Framework for Assessing Power Consumption in Mobile Applications: Android Energy Smells Case Study.一种面向开发者的移动应用功耗评估框架:安卓能量嗅探案例研究
Sensors (Basel). 2024 Oct 7;24(19):6469. doi: 10.3390/s24196469.
7
Random forests with parametric entropy-based information gains for classification and regression problems.用于分类和回归问题的、具有基于参数熵的信息增益的随机森林。
PeerJ Comput Sci. 2024 Jan 3;10:e1775. doi: 10.7717/peerj-cs.1775. eCollection 2024.
8
Evaluating Different Methods for Determining the Velocity-Dip Position over the Entire Cross Section and at the Centerline of a Rectangular Open Channel.评估在矩形明渠整个横截面上以及中心线处确定流速凹陷位置的不同方法。
Entropy (Basel). 2020 May 28;22(6):605. doi: 10.3390/e22060605.
9
A Two-Parameter Fractional Tsallis Decision Tree.一种双参数分数阶Tsallis决策树。
Entropy (Basel). 2022 Apr 19;24(5):572. doi: 10.3390/e24050572.
10
Python code smells detection using conventional machine learning models.使用传统机器学习模型检测Python代码异味。
PeerJ Comput Sci. 2023 May 29;9:e1370. doi: 10.7717/peerj-cs.1370. eCollection 2023.

引用本文的文献

1
Code smells analysis for android applications and a solution for less battery consumption.安卓应用的代码异味分析及降低电池消耗的解决方案。
Sci Rep. 2024 Jul 26;14(1):17683. doi: 10.1038/s41598-024-67660-z.
2
Quantitative Quality Evaluation of Software Products by Considering Summary and Comments Entropy of a Reported Bug.通过考虑报告漏洞的摘要和评论熵对软件产品进行定量质量评估。
Entropy (Basel). 2019 Jan 19;21(1):91. doi: 10.3390/e21010091.
3
From Physics to Bioengineering: Microbial Cultivation Process Design and Feeding Rate Control Based on Relative Entropy Using Nuisance Time.

本文引用的文献

1
Statistics review 7: Correlation and regression.统计学复习7:相关性与回归
Crit Care. 2003 Dec;7(6):451-9. doi: 10.1186/cc2401. Epub 2003 Nov 5.
2
Validity of linear regression in method comparison studies: is it limited by the statistical model or the quality of the analytical input data?方法比较研究中线性回归的有效性:它是受统计模型限制还是受分析输入数据质量限制?
Clin Chem. 1998 Nov;44(11):2340-6.
从物理学到生物工程:基于相对熵并利用干扰时间的微生物培养过程设计与进料速率控制
Entropy (Basel). 2018 Oct 11;20(10):779. doi: 10.3390/e20100779.