Affiliation:
1. Computer Engineering, Baskent University, Ankara 06790, Turkey
Abstract
The cohesion value is one of the important factors used to evaluate software maintainability. However, measuring the cohesion value is a relatively difficult issue when tracing the source code manually. Although there are many static code analysis tools, not every tool measures every metric. The user should apply different tools for different metrics. In this study, besides the use of these tools, we predicted the cohesion values (LCOM2, TCC, LCC, and LSCC) with machine learning techniques (KNN, REPTree, multi-layer perceptron, linear regression (LR), support vector machine, and random forest (RF)) to solve them alternatively. We created two datasets utilizing two different open-source software projects. According to the obtained results, for the LCOM2 and TCC metrics, the KNN algorithm provided the best results, and for LCC and LSCC metrics, the REPTree algorithm was the best. However, out of all the metrics, RF, REPTree, and KNN had close performances with each other, and therefore any of the RF, REPTree, and KNN techniques can be used for software cohesion metric prediction.
Subject
Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science
Reference33 articles.
1. Review of Literature on Software Quality;Obisat;World Comput. Sci. Inf. Technol. J.,2018
2. Tiwari, S., and Rathore, S.S. (2018, January 9–11). Coupling and Cohesion Metrics for Object-Oriented Software: A Systematic Mapping Study. Proceedings of the 11th Innovations in Software Engineering Conference, Hyderabad, India.
3. Assessment of Optimum Refactoring Sequence to Improve the Software Quality of Object-Oriented Software;Tarwani;J. Inf. Optimiz. Sci.,2020
4. Agile Methodologies in Software Maintenance: A Systematic Review;Tarwani;Inform.-J. Comput. Inform.,2016
5. Dallal, J.A. (2011, January 20–22). Improving Object-Oriented Lack-of Cohesion Metric by Excluding Special Methods. Proceedings of the 10th WSEAS International Conference on Software Engineering Parallel and Distributed Systems, Cambridge, UK.
Cited by
4 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献