error density metrics code example
Example 1: defect density
Defect density is the total number
of defects per lines of code.
Example 2: Defects and Defect Density of quality software
Defect Density = 40/3000 = 0.013333 defects/loc = 13.333 defects/Kloc