Halstead complexity measures: Difference between revisions

Content deleted Content added
Line 21:
* Difficulty : <math>D = { \eta_1 \over 2 } \times { N_2 \over \eta_2 } </math>
* Effort: <math>E = D \times V </math>
 
 
The difficulty measure is related to the difficulty of the program to write or understand, e.g. when doing [[code review]].
 
The effort measure translates into actual coding time using the following relation,
 
 
*Number of delivered bugs :
 
B = ( E ^ (2/3) ) / 3000 or more recently, Volume / 3000 is accepted.
 
Halstead's delivered bugs (B) is an estimate for the number of errors in the implementation.
 
* Time required to program: <math>T = E/18\,</math> seconds