Table 9. Metrics in set-3.
Metrics set | Metric name | Short form | Description/Formula |
---|---|---|---|
Halstead | Halstead length | N | N = N1 + N2 |
derived | Halstead level | L | L = V*/V |
Halstead difficulty | D | D = 1/L | |
Halstead volume | V | V = N * log2(n1+n2) | |
Halstead effort | E | E = V/L | |
Halstead prog time | T | T = E/18 | |
Halstead error est | B | B = E2/3/1000 | |
LoC | Loc total | LoC | The total number of lines for a given module |
Metrics | Loc executable | LoEx | The number of lines of executable code for a module (not blank or comment) |
Loc blank | LoB | The number of blank lines in a module | |
Loc comments | LoCm | The number of lines of comments in a module | |
Loc code & comment | LoCoCm | The number of lines which contain both code and comment in a module | |
McCabe | Cyclomatic complexity | v(G) | v(G) = e - n + 2 |
Metrics | Design complexity | iv(G) | The design complexity of a module |
Essential complexity | ev(G) | The essential complexity of a module |