Machine learningSoftware Metrics
Halstead Complexity
Halstead Complexity Metrics are a set of static code analysis measures developed by Maurice Halstead in 1977 that quantify software quality using operator and operand counts. Metrics like program volume, difficulty, and effort estimate code complexity, maintainability, and defect likelihood from source code structure alone.
Open in MethodMindSoonVideoSoon
Read the full method
Members only
Sign inSign in with a free account to read this section.
Sources
- Halstead, M. H. (1977). Elements of Software Science. Elsevier. ISBN: 0444002057
- Kitchenham, B. A., Pickard, L. M., & Linkman, S. J. (1995). An empirical study of source code defects. IEEE Transactions on Software Engineering, 21(2), 147–156. DOI: 10.1109/32.345830 ↗
- Harrison, W. (2007). Using metrics to evaluate software system maintainability. IEEE Software, 24(4), 44–50. DOI: 10.1109/MS.2007.86 ↗