Professional Documents
Culture Documents
Measures
Measures
cost
Functionality
Effectiveness
Quality
What is Measurement
measurement
is the process by which numbers or symbols are assigned to attributes of entities in the real world in such a way as to describe them according to clearly defined unambiguous rules
How do we measure?
What
Describe the world Need roles on how to evaluate what is the longest, biggest etc. Models of the entities being measured Model must be specific in terms of describing phenomena we are studying
measurement
Measurement which does not depend on the measurement of any other attribute.
Indirect
measurement
Object Measurement Ranging from products to processes and projects Purpose of Measurements : such as characterization, assessment, evaluation Source of Measurement : Software designers, software testers and software managers Measured Property : Cost of software, reliability, maintainability, size Context of Measurement : Where software artifacts are measured in different environments, which are specified in advance before applying some software measures
Productivity measures
Size-related
measures
Based on some output from the software process. This may be lines of delivered source code, object code instructions, etc.
Function-related
measures
Based on an estimate of the functionality of the delivered software. Function-points are the best known of this type of measure.
For
used in the program, N1 be the total number of operators used in the program, N2 be the total number of operands used in the program.
(CONT.)
Operators
Some
general guidelines can be provided: All assignment, arithmetic, and logical operators are operators. A pair of parentheses,
as
well as a block begin --- block end pair, are considered as single operators. it is used as the target of a GOTO statement.
Operators
An if ... then ... else ... endif
and a while ... do construct are single operators. A sequence (statement termination) operator ';' is a single operator. function call
(CONT.)
(CONT.)
of a program quantifies
total usage of all operators and operands in the program: Thus, length N=N1+N2.
Program
vocabulary:
= 1 + 2 .
Program Length:
The
length of a program:
total number of operators and operands used in the code depends on the choice of the operators and operands,
i.e.
for the same program, the length depends on the style of programming.
N
= n1log2n1 + n2log2n2
Program Volume:
N
No of mental comparisons required to write a program of length N Log2n expresses the no of attempts in a binary search applied to vocabulary of size n
the notion of program volume V is introduced:
V= N log2
denotes
program volume V
represent
different identifiers,
bits ( is the
V*:
volume of the most succinct program in which the program can be coded.
1 = 2, 2 =n
Therefore,
V*=(2+ 2) log2(2+ 2)
Program level :
The
program level L is given by L=V*/V. V is a volume of another implementation originating from the same requirements L is a measure of the level of abstraction:
languages can be ranked into levels that appear intuitively correct.
E=V/L, where
E is the number of mental discriminations required to write the program also the effort required to read and understand the program.
Example:
Example:
The
unique operators are: main, (), \{\}, int, scanf, \&, ",", ";", =, +, /, printf The unique operands are: a,b,c,\&a,\&b,\&c,a+b+c,avg,3,"\% d \%d \%d", "avg=\%d
Example
Therefore Estimated
N
(CONT.)
= n1log2n1 + n2log2n2
Length=(12*log12+11*log11)
Summary
Halsteads
software science