Metrics Mod 2
Metrics Mod 2
Metrics
• Defect rates
• Error rates
• Measured by:
• individual
• module
• during development
• Project Metrics are the measures of Software Project and are used to
monitor and control the project. They enable a software project
manager to:
• Metrics:
- Effort or time per SE task
- Errors uncovered per review hour
- Scheduled vs. actual milestone dates
- Number of changes and their characteristics
- Distribution of effort on SE tasks
Product metrics
• Direct measures
• Easy to collect
• E.g. Cost, Effort, Lines of codes (LOC), Execution Speed,
Memory size, Defects etc.
• Indirect measures
• More difficult to assess & can be measured indirectly
only.
• Quality, Functionality, Complexity, Reliability, Efficiency,
Maintainability etc.
An example
• Size-Oriented:
- errors per KLOC (thousand lines of code), defects per KLOC, R per LOC, page of
documentation per KLOC, errors / person-month, LOC per person-month, R / page
of documentation
• Function-Oriented:
- errors per FP, defects per FP, R per FP, pages of documentation per FP, FP per
person-month
Size-Oriented Metrics
• Program length: N = N1 + N2
• Program vocabulary: n = n1 + n2
N̂
• Estimated length: = n1 log2 n1 + n2 log2 n2
• Close estimate of length for well structured programs
N̂
• Purity ratio: PR = /N
Program Complexity
• Volume: V = N log2 n
• Number of bits to provide a unique designator for each of the n items
in the program vocabulary.
• Difficulty