Halstead complexity measures: Difference between revisions

Content deleted Content added
Previous version mistakenly took N2
No edit summary
Line 19:
* Calculated program length: <math>\hat{N} = \eta_1 \log_2 \eta_1 + \eta_2 \log_2 \eta_2 </math>
* Volume: <math>V = N \times \log_2 \eta </math>
* Difficulty : <math>D = { \eta_1 \over 2 } \times { N_1N_2 \over \eta_2 } </math>
* Effort: <math>E = D \times V </math>
 
Line 55:
* Calculated Program Length: <math>\hat{N} = 10 \times log_2 10 + 7 \times log_2 7 = 52.9</math>
* Volume: <math>V = 31 \times log_2 17 = 126.7</math>
* Difficulty: <math>D = { 10 \over 2 } \times { 16 \over 7 } = 1110.47</math>
* Effort: <math>E = 10.7 \times 126.7 = 14481355.17</math>
* Time required to program: <math>T = { 1,355.7 \over 18 } = 8075.4</math> seconds
* Number of delivered bugs: <math>B = { 1,355.7 ^ { 2 \over 3 } \over 3000 } = 0.04</math>