Halstead Complexity
Halstead Complexity Metrics เป็นชุดของการวัดผลการวิเคราะห์โค้ดแบบสถิต (static code analysis) ที่ Maurice Halstead พัฒนาขึ้นในปี 1977 เพื่อวัดคุณภาพของซอฟต์แวร์โดยใช้จำนวนตัวดำเนินการ (operator) และตัวถูกดำเนินการ (operand) เมทริกซ์ต่างๆ เช่น ปริมาตรโปรแกรม (program volume) ความยาก (difficulty) และความพยายาม (effort) เป็นการประมาณค่าความซับซ้อนของโค้ด ความสามารถในการบำรุงรักษา (maintainability) และโอกาสในการเกิดข้อผิดพลาด (defect likelihood) จากโครงสร้างซอร์สโค้ดเพียงอย่างเดียว
อ่านวิธีฉบับเต็ม
เข้าสู่ระบบด้วยบัญชีฟรีเพื่ออ่านส่วนนี้
Method map
The neighbourhood of related methods — select a node to explore.
แหล่งอ้างอิง
- 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. link ↗
- Harrison, W. (2007). Using metrics to evaluate software system maintainability. IEEE Software, 24(4), 44–50. link ↗
วิธีอ้างอิงหน้านี้
ScholarGate. (2026, June 3). Halstead Complexity Metrics. ScholarGate. https://scholargate.app/th/numerical-methods/halstead-complexity
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- ความซับซ้อนเชิงวัฏจักรระเบียบวิธีเชิงตัวเลข↔ compare