19-Module 4 - Product Metrics-03!10!2024
19-Module 4 - Product Metrics-03!10!2024
UNIT 4
A measurement is a specific value or data point collected (e.g., "5 miles"), while a metric is a system or standard
used to evaluate or compare measurements (e.g., "distance traveled").
A measurement is the act of quantifying something (e.g., "10 cm"), while a metric is a standard or framework
used to assess or track progress (e.g., "growth rate in centimeters per month").
Product Metrics
• The working product is developed at the end of each successive phase.
• Metrics are developed for these products so that they can indicate
whether a product is developed according to the user requirements.
The product metrics assess the internal product attributes in order to know the efficiency
of the following.
• Metrics for design model: These allow software engineers to assess the quality of design
and include architectural design metrics, component-level design metrics, and so on.
• Metrics for source code: These assess source code complexity, maintainability, and other
characteristics.
• Metrics for testing: These help to design efficient and effective test cases and also
• Metrics for maintenance: These assess the stability of the software product.
Metrics for the Requirements Model
• The function point (FP) metric can be used effectively as a means for
measuring the functionality delivered by a system.
• Estimate the cost or effort required to design, code, and test the
software.
Information
Number of external inquiries (EQs). Domain Values Number of internal logical files
(ILFs).
• Number of external outputs (Eos). Each external output is derived from data within the
application that provides information to the user. In this context, external output refers to reports,
screens, error messages, etc. Individual data items within a report are not counted separately.
• Number of external inquiries (EQs). An external inquiry is defined as an online input that results
in the generation of some immediate software response in the form of an online output (often retrieved
from an ILF).
• Number of Each internal logical file is a logical grouping of data that resides within the application’s
boundary and is maintained via external inputs.
• Number of external interface files (EIFs). Each external interface file is a logical grouping of
data that resides external to the application but provides information that may be of use to the
Function-Based Metrics Cont’d
Other Applications
Ext
ern EIs EQs Eos EIFs
al Inp
u t
Extern
al Out
User put
Extern
a l E nq ILF ILF ILF
uires
Application Being
measured
Application
Boundary
ILF – Internal logic files
Function-Based Metrics Cont’d
Step1: Calculate the Count total (or) UFP CAF- Complexity Adjustment
Factor
Step2: Calculate Complexity Adjustment Factor
• UAF – Unadjusted Function
Step3: Multiply UFP and CAF Point
Function-Based Metrics Cont’d
Step 1:
• Calculate the Count total (or) UFP
Use the Complexity Value table
Example
Function-Based Metrics Cont’d
Step 2:
• Calculate the Complexity Adjustment
Factor
1 - Incidental
2 - Moderate
3 - Average
4 - Significant
5 - Essential
Function-Based Metrics Cont’d
Step 2 Cont’d: The Value adjustment factors
1. Does the system require reliable backup and recovery?
2. Are specialized data communications required to transfer information to or from the application?
3. Are there distributed processing functions?
4. Is performance critical?
5. Will the system run in an existing, heavily utilized operational environment?
6. Does the system require online data entry?
7. Does the online data entry require the input transaction to be built over multiple screens or
operations?
8. Are the ILFs updated online?
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?
Function-Based Metrics Cont’d
Step 2 Cont’d:
For Example, let us consider All Factors are average, then ∑(Fi ) =
14*3 = 42
CAF = 0.65+(.01*42)
=1.07
• Conversion need: Many efforts and models are based on LOC, and a function point needs
to be converted.
• Less Researched Data: Less research data is available on function point as compared to
LOC.
• Long learning curve: As the learning curve is quite long it's not easy to gain proficiency.
Cost = $ / FP
Quality = Errors / FP
Productivity = FP / person-month
Metrics for Specification Quality
The quality of the requirements model and the corresponding
requirements specification
• Scope to trace
• Scope of completeness
• Scope to interpret
• Scope of consistency
• Scope to understand
• Scope of accuracy
• Scope to test
• Scope to modify
• Scope to verify
• Scope to rank
• Scope to validate
Metrics for Specification Quality
where nui is the number of requirements for which all reviewers had
identical interpretations. The closer the value of Q to 1, the lower is the
ambiguity of the specification.
Completeness of Functional Requirements
• The completeness of functional requirements can be
determined by computing the ratio