Halstead complexity measures: Difference between revisions

Content deleted Content added
Dfg13 (talk | contribs)
add reference
Dfg13 (talk | contribs)
expand introduction
Line 1:
'''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> Theseas metricspart areof computedhis statically,treatise withouton establishing an empirical science of programsoftware executiondevelopment.
Halstead makes the observation that metrics of the software should reflect the implementation or expression of algorithms in different languages, but be independent of their execution on a specific platform.
These metrics are therefore computed statically from the code.
 
Halstead's goal was to identify measurable properties of software, and the relations between them.
This is similar to the identification of measurable properties of matter (like the volume, mass, and pressure of a gas) and the relationships between them (such as the [[ideal gas law|gas equation]]).
Thus his metrics are actually not just complexity metrics.
 
== Calculation ==