Professional Documents
Culture Documents
Chapter 10
Software Metrics
Recognition of attributes
Line-of-code metrics
Halstead metrics
Understanding
Control
Improvement
Product
Resource
Attributes of entities
Internal Attributes
External Attributes
Program Vocabulary
n = n1 + n2
where n = program vocabulary
n1 = number of unique operators
n2 = number of unique operands
Program Length
N = N1 + N2
where N = program length
N1 = all operators appearing in the implementation
N2 = all operands appearing in the implementation
© Oxford University Press 2017. All rights reserved.
Size Metrics (contd.) 6
Program Volume
V = N log2 n
N = Program length
n = Program vocabulary
Identify all data functions (internal logical functions and external interface files)
and their complexity.
Identify all transactional functions (external inputs, external outputs and the
external queries) and their complexity.