Machine learningSoftware Metrics

Halstead Complexity

Halstead Complexity Metrics เป็นชุดของการวัดผลการวิเคราะห์โค้ดแบบสถิต (static code analysis) ที่ Maurice Halstead พัฒนาขึ้นในปี 1977 เพื่อวัดคุณภาพของซอฟต์แวร์โดยใช้จำนวนตัวดำเนินการ (operator) และตัวถูกดำเนินการ (operand) เมทริกซ์ต่างๆ เช่น ปริมาตรโปรแกรม (program volume) ความยาก (difficulty) และความพยายาม (effort) เป็นการประมาณค่าความซับซ้อนของโค้ด ความสามารถในการบำรุงรักษา (maintainability) และโอกาสในการเกิดข้อผิดพลาด (defect likelihood) จากโครงสร้างซอร์สโค้ดเพียงอย่างเดียว

เปิดใน MethodMindเร็ว ๆ นี้วิดีโอเร็ว ๆ นี้Download slides

อ่านวิธีฉบับเต็ม

สำหรับสมาชิกเท่านั้น

เข้าสู่ระบบด้วยบัญชีฟรีเพื่ออ่านส่วนนี้

เข้าสู่ระบบ

Method map

The neighbourhood of related methods — select a node to explore.

แหล่งอ้างอิง

  1. Halstead, M. H. (1977). Elements of Software Science. Elsevier. ISBN: 0444002057
  2. 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
  3. 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 side by side

ถูกอ้างอิงโดย

ScholarGateHalstead Complexity (Halstead Complexity Metrics). สืบค้นเมื่อ 2026-06-15 จาก https://scholargate.app/th/numerical-methods/halstead-complexity · ชุดข้อมูล: https://doi.org/10.5281/zenodo.20539026