Halstead complexity measures: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Cleanup HTML}}
Eindiran (talk | contribs)
Replace HTML markup tags with Wiki markup tags
Line 1:
{{cleanup HTML|date=February 2019}}
{{short description|Software maintainability index}}
'''Halstead complexity measures''' are [[software metric]]s introduced by Maurice Howard Halstead in 1977<ref>{{cite book |author=Halstead, Maurice H. |title=Elements of Software Science |publisher=Elsevier North-Holland, Inc. |___location=Amsterdam |year=1977 |isbn=0-444-00205-7}}</ref> as part of his treatise on establishing an empirical science of software development.
Line 47 ⟶ 46:
The unique operators are:
<ttcode>main</ttcode>, <ttcode>()</ttcode>, <ttcode>{}</ttcode>, <ttcode>int</ttcode>, <ttcode>scanf</ttcode>,
<ttcode>&</ttcode>, <ttcode>=</ttcode>, <ttcode>+</ttcode>, <ttcode>/</ttcode>, <ttcode>printf</ttcode>, '<ttcode>,</ttcode>', <ttcode>;</ttcode>
The unique operands are:
<ttcode>a</ttcode>, <ttcode>b</ttcode>, <ttcode>c</ttcode>, <ttcode>avg</ttcode>, <ttcode>"%d %d %d"</ttcode>, <ttcode>3</ttcode>, <ttcode>"avg = %d"</ttcode>
* <math>\eta_1 = 12</math>, <math>\eta_2 = 7</math>, <math>\eta = 19</math>