5 Product Metrics CH 23
5 Product Metrics CH 23
Software
Engineering
Lecture # 05
Economics
SE(481)
Department of Computing
Hamdard Institute of Engineering & Technology
Hamdard University
Product Metrics
Chapter # 23
Software Engineering
A Practitioner’s Approach
7th Edition
Roger S. Pressman
Hamdard University
Product Metrics
Metrics for Requirement Model
Hamdard University
Metrics for Requirement Model
Metrics for Specification Quality
Davis and his colleagues propose a list of characteristics that can be used
to assess the quality of the requirements model and the corresponding
requirements specification:
Specificity (lack of ambiguity),
Completeness, correctness
Internal & external consistency
Understandability, verifiability
Achievability, concision, traceability
Modifiability, precision, reusability
where
nf is the number of functional requirements
nnf is the number of non-functional requirements
Q1 = nui / nr
Q2 = nu / ni x ns
Hamdard University
Metrics for Software Design
These metrics are “black box” in the sense that they do not require
any knowledge of the inner workings of a particular software
component.
Structural complexity
S(i) = f2out(i)
where f2out(i) is the “fan out” of module i
Data complexity provides an indication of the complexity in the internal interface for
a module i and is defined as
where V(i) is the number of input and output variables that are passed to and from
module i.
System complexity is defined as the sum of structural and data complexity, specified
Shape complexity
size = n + a
where n is the number of nodes and
a is the number of arcs
Allows different program software architectures to be
compared in a straightforward manner