Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
'''Halstead complexity
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
http://en.wikipedia.org/wiki/Main_Page
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 (analogous to the [[ideal gas law|gas
Thus his metrics are actually not just complexity metrics.http://en.wikipedia.org/wiki/Main_Page
http://en.wikipedia.org/wiki/Main_Pagehttp://en.wikipedia.org/wiki/Main_Pagehttp://en.wikipedia.org/wiki/Main_Page
== Calculation ==http://en.wikipedia.org/wiki/Main_Page
For a given problem, Let:
* <math>\,\eta_1</math> = the number of distinct operators
* <math>\,\eta_2</math> = the number of distinct
* <math>\,N_1</math> = the total number of operators
* <math>\,N_2</math> = the total number of operands
|