Software Metrics-4
Software Metrics-4
Measurement
Definitions
Definitions
Why Do We Measure?
Types of Metrics
1.
Process Metrics
2.
Product Metrics
3.
Project Metrics
Process Metrics
Project Metrics
Project Metrics
Product metrics
Types of Software
Measurements
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
2 different project
Which team do
you think is
more effective
in finding
errors?
Normalization of Metrics
Size-Oriented Metrics
Function Oriented Metrics
Size-Oriented Metrics
Size-Oriented Metrics
Function-Oriented Metrics
Steps In Calculating FP
1. Count the measurement parameters.
2. Assess the complexity of the values.
3. Calculate the raw FP (see next table).
4. Rate the complexity factors to produce the complexity
adjustment value (CAV)
5. Calculate the adjusted FP as follows:
FP = raw FP x [0.65 + 0.01 x CAV]
0 - No influence
1 - Incidental
2 - Moderate
3 - Average
4 - Significant
5 - Essential
Complexity Adjustment
Factors(Continue)
8. Are the master files updated on-line?
9. Are the inputs, outputs, files, or inquiries complex?
10. Is the internal processing complex?
11. Is the code designed to be reusable?
12. Are conversion and installation included in the
design?
13. Is the system designed for multiple installations in
different organizations?
14. Is the application designed to facilitate change and
ease of use by the user?
Example of Function-Oriented
Metrics
Errors per FP
Defects per FP
$ per FP
Pages of documentation per FP
FP per person month
FP Characteristics