Metrics and Measurement
Metrics and Measurement
it should not demant
metrics should not be based op
2 Objective and Consistent. The ;
eA jecaats it should give dear results. An independent third
i jerive the same metric value using the sam:
parr sould 5
2 Exsily Available. The metrics should be available at a reasonal
ast.
4. Weld. The metric should measure what it is intended to measurpoasuroront and Motrics
i
| pobus ie metric should be ;
able to withstand minor 4
product
yr $s
’ , software metric is an
altem;
pt to me.
easure or predict i
predict some attribute
any oduct
uct 0 cess, TI
yon ze set Pca Software Ei
42 on a set of metrics uni Engineering c i
f en ee i, community ha
eed sople have come up aoe accepted by the field plete
their own ways to measure th al an
asure the different
Bye
an?
files of a software.
as
tandard product
ptrics are :
an
() Token metrics
Function point and extended function point
0
(@ Bang, metrics
; wa
code Complexity Metrics” VL,
] SL)
7 Ai 7
V
wv
@ Cyclomatic complexity 4
a
she ot a
J
n_is_the process of predicting the siz
software prod uct. (Accurate size estimation is crtical to effectively manage
process) {the Project planet, must understand
eneratean estimate of its size
the software developmen
are to be built and g
hoe is only as good
the scope of the softw
before a project estima Project estimate
iecomplished.
as ea of the size of pre ork to
| 4A 1 Code (LOCH
/ LOG: of the eau nd sim lest’metric
size of a compuler
apersizevor estimating the efort and 5 =
te oP :
Software size estimatio
te can be made} A’
.17Lines
program. jowevel,there is no standard definition of what makes 7 are oe D He ;
itferent workers for the sante program may obtain ene
gitferent wo I weightage is given to each line of code White the p
hat sone aa nltage 2 Program are more difticun to
cane other) Bespte all this, this metric conti
: : bya
cale a comparing the tig Ye
Popular tool for calcu lating ad oe ‘ring ire Productiy; Y
Programmers, which can be measure as ine Of cod le/man-mo,
ay
Onth) © oy
\The LOC is often use esting-and maintentice Phaseg
only to specify the Ware product but also it canbe rhe
together with other metrics to analyse Other aspects oF its quality and of
Aadvantages of Loc —
wa Simple to measure
5
Disady,
de
Yes to A, th,
d during the t
size-of the Softy,
antages of Loc .
It is Programming language dependent, um
3 Does not Modate NO Procedural. language: -
accom
* Poor software design may lead to excessiv
OF code.
ve and unnecessary ling
—
4.11.2, Token Metrics
The Major drawback in LOC size measure is
alike. In
M.H. Halstead, Proposed one of the token metric
where the size ofa
gram, which Consists of the Number of unique toke!
Ms of : a
ns can be defined in
aNe
Nien, At
‘oun of \
LOCCUTLENCE OLoper 8.
Dporat
ae “oun of ota perands
tal Secure fice tof
operand
t a
(
(aware any symbi Pa
wt u eywa wg
ra consist of ord ina
Mlle “0 il ‘ital apis specifies an
ae and speci such as 4,
pecial sy Mbols such as by é en
2
a )
wt)
Ai
we Th
f op" orl
——15
«fonction Point (FP)
,
Hyon point (1). was developed 4
at a nt to overcome difficulties associated w ill
N and fo a assist in developing ames " e ‘em to ae
yn “gee
ru
oe wih software de
it me f development) .
jg-an objective and structured ety messi
tasedS”
wf
(p ese
quantifying its functionality provided | ys
s the , syste ak
Wie ,
wi a and logical design: his technique break:
er components so that they’can be better understood and analysed}
ies ial
5, thus divides the system into five basic =