SlideShare a Scribd company logo
1 of 27
Software Metrics




                                                          What it is?
                                      What are the different Metrics?
                  The act of collecting Software measurement Data.




13 January 2012     Made By Utpal Ray                                   1
Software Metrics

 The Story So Far
  4 Blocks SDLC ( Software Development Life Cycle ) Model




                                 Design and
             SPECIFI-                          Testing and   Maintenance
                                Development
             CATION                             Validation




                              Software Measurement Process




13 January 2012         Made By Utpal Ray                                  2
Software Metrics



  Why do we do software measurement?
    Measurement is fundamental to any engineering
    discipline, and software engineering is no exception.
    To get an insight into the software process.
    To do process improvement.
    To make the quality of the product better.
    To express the qualitative factor by a number.
    To make a better estimate of the cost, schedule,
    complexity, effort requirements etc. of the s/w
    development process.


13 January 2012   Made By Utpal Ray                         3
Software Metrics



 Why do we do software measurement? ( contd. )
 The answer was nicely given by Lord Kelvin:-
 When you can measure what you are speaking about and
 express it in numbers, you know something about it; but
 when you cannot measure, when you cannot express it in
 numbers, your knowledge is of a meager and unsatisfactory
 kind: it may be the beginning of knowledge, but you have
 scarcely , in your thoughts, advanced to the stage of science.




  13 January 2012   Made By Utpal Ray                        4
Software Metrics


  Measures, Measurements, Metrics, Indicators
    Measure is a quantitative indication of the extent, size,
    amount, dimension, capacity of some attributes of a
    product or a process.
    Measurement is the act of determining a measure.
    Metric is a quantitative measure of the degree to which
    a system, component, or a process possesses a given
    attribute.
    An indicator is a metric or a combination of metrics
    that provide insight into the s/w process, a s/w project
    or the s/w product itself.

13 January 2012   Made By Utpal Ray                             5
Software Metrics

 Measures, Measurements, Metrics, Indicators ( contd. )




                       S/W
                    Engineering
                     Process
                                                                          Measures
                                           Data Collection
                    S/W Projects
                                                                            Metrics
                                                       Metrics
                        S/W                          Computation
                      Products
                                                              Metrics     Indicators
                                                             Evaluation

  13 January 2012          Made By Utpal Ray                                      6
Software Metrics


  An example of “Measures, Measurements, Metrics,
   Indicators”
 All test engineers of a certain project started collecting
   the following measure – ‘The errors found in the test
   cycle’.
 But this measure is not enough to compute a suitable
   metric. You need two more measurements, which are
   number of test engineer and the number of months
   spent on the testing process.
 Suppose there were 5 test engineers and they spent
   about 6 months to do the necessary testing of the
   product. So, the total engineer-month is 30.

13 January 2012   Made By Utpal Ray                           7
Software Metrics


  An example of “Measures, Measurements, Metrics,
   Indicators” ( contd. )
 And let’s assume, all together they found about 60 errors.
 So, using all those measures mentioned above we can
   compute a Metric, which could be ‘Errors found per
   Engineer-Month’; and the value of that metric here is 2.
 This metric can be used here as an indicator regarding how
   efficient the test teams are or how good the product is.
 For example, after introducing an automated testing tool, the
   above metric may reach a value of ‘5’; which indicates the
   effectiveness of the automated testing tool used by the test
   team.
 So, this Metric can be used as an indicator of the efficiency of
   a project team.

13 January 2012   Made By Utpal Ray                                 8
Software Metrics


  Process, Project and Product Metrics
 - The process metrics are those metrics which are
   concerned with Software Development Life Cycle (
   SDLC ). They can be used to improve the process
   efficiency of the SDLC. For example, the process
   metric ‘Defect Rate’ – the amount of defects reaching
   the customer can be used to improve the efficiency of
   the Development and the Testing team. If ‘Defect rate’
   is less, we know that the efficiency of the Development
   and the Testing team is improving.




13 January 2012   Made By Utpal Ray                          9
Software Metrics



  Process, Project and Product Metrics (contd.)

 - The project metrics are those metrics which are more
   relevant to a project team. They can be used to
   measure the efficiency of a project team or any other
   tools being used by the team members. One example
   of a project metric is ‘Errors found per engineer-
   month’ which was mentioned before. This is a relevant
   project metric for a test team.




13 January 2012   Made By Utpal Ray                    10
Software Metrics



  Process, Project and Product Metrics (contd.)
 - The product metrics are those metrics which has more
   meaning in the perspective of the software product
   being developed. One of the example is, quality of the
   developed product. Considering the fact that quality is
   a subjective attribute, one needs a very good
   understanding of the measures based on which the
   quality metrics are computed.




13 January 2012   Made By Utpal Ray                      11
Software Metrics


  Private and Public Metrics
 - The Private metrics are those metrics which are
   collected by individual software professionals. They
   are mostly used by any software professional to get an
   insight regarding how is his productivity or any other
   parameter of interests to him. For example, a test
   engineer may keep ‘errors found in a week’ as a
   private metric. Similarly, for a development engineer,
   ‘lines of code written in a week’ could be a private
   metric of interests to him. Also, an IT professional may
   keep ‘Number of new technology studied in a
   month’ as a private metric.

13 January 2012   Made By Utpal Ray                       12
Software Metrics


  Private and Public Metrics ( contd. )
 - The public metrics has more meaning on a overall team
   basis. The public metrics can be computed depending
   upon the private metrics made public by the
   individual software professional. They are more
   concerned with the project team rather than any
   individual software professional. The examples are,
   ‘Errors found per engineer-month’, ‘Lines of code
   written per engineer-month’, etc.




13 January 2012   Made By Utpal Ray                    13
Software Metrics

  Private and Public Metrics ( contd. )
 - It may happen that some of the product metrics are
    private metrics maintained by the individual engineer.
    When these metrics are shared by all the engineer on
    the team basis, those metrics can be combined to
    develop a set of project metrics on a project level. In
    addition to that, these project metrics can be
    consolidated to create a set of process metrics. So, at
    the end these process metrics become the public
    metrics for the whole organization.




13 January 2012   Made By Utpal Ray                           14
Software Metrics


  Size Oriented Metrics
    The size oriented metrics are those metrics, which are
    computed keeping size of the software as main
    consideration.
    The size of the software are usually expressed in terms
    of KLOC ( Kilo Line Of Code ).
    The table on the following slide gives various project
    data ( measures ) for three different projects executed
    over 3 successive years.
    Using those project data one can come out with
    different size oriented metrics.

13 January 2012   Made By Utpal Ray                           15
Software Metrics

        Size Oriented Metrics ( contd. )
     Project      Line of Total         Cost    Doc        Errors    Defects No of
     Name         Code    Effort in     ( Lac   Produc     found     found   person
                  ( LOC) person-        of Rs ) ed (       in test   in the  s
                          month                 pages )    Cycle     field
     ALPHA        12,000 24             5           400    150       25      3
     ( 2002 )


     BETA         24,000 50             12          1000   250       50      6
     ( 2003 )


     GAMMA 18,000 33                    8           800    175       30      5
     ( 2004 )



13 January 2012                 Made By Utpal Ray                                     16
Software Metrics


        Size Oriented Metrics ( contd. )
       The four different metrics which can be computed from the
         previous table are, Errors per KLOC, Defects per KLOC,
         Cost per KLOC and Doc per KLOC.
                   Errors per      Defects per    Cost per      Doc per
                   KLOC            KLOC           KLOC (Thou)   KLOC

        ALPHA          12.5                   2       42            33
        ( 2002 )

        BETA           10.4                   2       50            41
        ( 2003 )

        GAMMA          9.7                1.5         44            44
        ( 2004 )


13 January 2012           Made By Utpal Ray                               17
Software Metrics

  Size Oriented Metrics ( contd. )
 If we try to evaluate these metrics, we may end up
    finding one or two major indicators. These indicators
    may point towards a better quality process which was
    incorporated during those three years.
 For example, both ‘Error rate’ and ‘Defect Rate’ were
    gradually down as recent projects had been executed.
    These may give indication that, whatever quality
    process methodology was introduced during those
    projects had given out results towards the right
    direction.




13 January 2012   Made By Utpal Ray                         18
Software Metrics

  Function Oriented Metrics (A. J. Albrecht, 1979)
 It’s a metric which gives the degree of functionality
    delivered by a software system. Since
  ‘functionality’ can not be measured directly; an
  indirect measurement is done by computing
  Function-Point ( FP ).
 FP is derived using an empirical relationship based
  on countable ( direct ) measures of software’s
  information domain and assessment of software
  complexity.
 FP can be computed by completing the table shown
  in the next slide and then applying some formulae.

13 January 2012   Made By Utpal Ray                      19
Software Metrics

        Function Oriented Metrics ( contd. )

     Measurement            count             Weighing Factor           Sub-
     Parameter                           Simple Average Complex         total
     No of User Inputs               X       3     4           6    =

     No of User Outputs              X       4     5           7    =

     No of User Inquiries            X       3     4           6    =

     No of Files                     X       7     10          15   =

     No of External                  X       5     7           10   =
     Interfaces

                                                 Count Total


13 January 2012              Made By Utpal Ray                                  20
Software Metrics



  Function Oriented Metrics ( contd. )
 The weighing factor mentioned in the previous table
  depends upon the fact, whether that particular entry is
  simple, average or complex.
 FP can be given by the following formulae-
 FP = Count-Total x [ 0.65 + 0.01 x      ( Fi ) ]
 Where, Fi ( i=1 to 14 ) are “complexity adjustment value”,
  based on the responses of the following questions.
  Each of the question is answered in a scale of 0 ( not
  important or applicable ) to 5 ( absolutely essential ).


13 January 2012   Made By Utpal Ray                       21
Software Metrics


   Function Oriented Metrics ( contd. )
         Complexity Adjustment Questions
 1. Does the system require reliable Backup and
    Recovery?
 2. Are Data Communication required?
 3. Are there any Distributed Processing function?
 4. Is Performance critical?
 5. Will the system run in an existing, heavily utilizied
    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 ?

13 January 2012   Made By Utpal Ray                         22
Software Metrics


  Function Oriented Metrics ( contd. )
      Complexity Adjustment Questions ( contd. )
 8. Are the Master files updated Online?
 9. Are the Inputs, Outputs, Inquiries, Files complex ?
 10. Is the Internal Processing complex ?
 11. Is the code designed to be Re-usable?
 12. Are Conversion and Installation included in the
    design ?
 13. Is the system designed for Multiple Installation in
    different organization ?
 14. Is the application designed to facilitate Change and
    Ease of Use by the user?

13 January 2012   Made By Utpal Ray                         23
Software Metrics


  Function Oriented Metrics ( contd. )
 Once the FP is computed, the following metrics can be
   derived using FP as a normalization value.
 - Errors per FP
   Defects per FP
   Cost per FP
   Doc per FP
   FP per person-month




13 January 2012   Made By Utpal Ray                      24
Software Metrics

        The relationship between LOC and FP ( C. Jones, 1998 )

                    Prog Lang                  LOC/FP
                  Assembly Lang                  320
                        C                        128
                     COBOL                       106
                    FORTRAN                      106
                     PASCAL                       90
                       C++                        64
                  VISUAL BASIC                    32
                  POWEBUILDER                     16
                       SQL                        12

13 January 2012           Made By Utpal Ray                       25
Software Metrics


  Defect Removal Efficiency ( DRE )
 It is a metric which benefits both in the project level
   and process level. DRE is defined as;
       DRE= E / ( E + D )
 Where, E is the number of errors found before the
   delivery of the software to the end user and D is
   the number of defects found after delivery.
 Ideally DRE should be 1 (means D is zero).
 DRE can also be used within a project team, to
   measure the team’s efficiency. In that context, E is
   the total number of errors uncovered in the project
   team; and D is the total number of defects
   uncovered in the next stage.

13 January 2012   Made By Utpal Ray                        26
Software Metrics



   HOME TASK
 1. Give 2 more examples of private metrics.
 2. Think about 3 more metrics based on LOC.
 3. Think about 2 more metrics based on FP.
 4. Compute the FP for ‘SafeHome’ problem.
 5. Compute the FP for the ‘Max Number’ prog.




13 January 2012   Made By Utpal Ray             27

More Related Content

What's hot

Software Configuration Management (SCM)
Software Configuration Management (SCM)Software Configuration Management (SCM)
Software Configuration Management (SCM)Er. Shiva K. Shrestha
 
Software architecture design ppt
Software architecture design pptSoftware architecture design ppt
Software architecture design pptfarazimlak
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process ModelsAtul Karmyal
 
Pressman ch-11-component-level-design
Pressman ch-11-component-level-designPressman ch-11-component-level-design
Pressman ch-11-component-level-designOliver Cheng
 
Basic Software Effort Estimation
Basic Software Effort EstimationBasic Software Effort Estimation
Basic Software Effort Estimationumair khan
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysisMahesh Bhalerao
 
Introduction to Software Project Management
Introduction to Software Project ManagementIntroduction to Software Project Management
Introduction to Software Project ManagementReetesh Gupta
 
IT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTINGIT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTINGSathya R
 
Software Project Management( lecture 1)
Software Project Management( lecture 1)Software Project Management( lecture 1)
Software Project Management( lecture 1)Syed Muhammad Hammad
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)ShudipPal
 
Model Based Software Architectures
Model Based Software ArchitecturesModel Based Software Architectures
Model Based Software ArchitecturesMunazza-Mah-Jabeen
 
Design concept -Software Engineering
Design concept -Software EngineeringDesign concept -Software Engineering
Design concept -Software EngineeringVarsha Ajith
 
Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) - Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) - Shashi Kumar
 
Software project estimation
Software project estimationSoftware project estimation
Software project estimationinayat khan
 

What's hot (20)

Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
Software Configuration Management (SCM)
Software Configuration Management (SCM)Software Configuration Management (SCM)
Software Configuration Management (SCM)
 
Software architecture design ppt
Software architecture design pptSoftware architecture design ppt
Software architecture design ppt
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
 
Pressman ch-11-component-level-design
Pressman ch-11-component-level-designPressman ch-11-component-level-design
Pressman ch-11-component-level-design
 
Basic Software Effort Estimation
Basic Software Effort EstimationBasic Software Effort Estimation
Basic Software Effort Estimation
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
 
Introduction to Software Project Management
Introduction to Software Project ManagementIntroduction to Software Project Management
Introduction to Software Project Management
 
Uml
UmlUml
Uml
 
IT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTINGIT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTING
 
Software Project Management( lecture 1)
Software Project Management( lecture 1)Software Project Management( lecture 1)
Software Project Management( lecture 1)
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)
 
Model Based Software Architectures
Model Based Software ArchitecturesModel Based Software Architectures
Model Based Software Architectures
 
Design concept -Software Engineering
Design concept -Software EngineeringDesign concept -Software Engineering
Design concept -Software Engineering
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
Chapter 2 software process models
Chapter 2   software process modelsChapter 2   software process models
Chapter 2 software process models
 
Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) - Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) -
 
Software project estimation
Software project estimationSoftware project estimation
Software project estimation
 

Similar to 13 software metrics

Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application tanveer ahmad
 
software metrics(process,project,product)
software metrics(process,project,product)software metrics(process,project,product)
software metrics(process,project,product)Amisha Narsingani
 
Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)MuskanSony
 
Chapter 11 Metrics for process and projects.ppt
Chapter 11  Metrics for process and projects.pptChapter 11  Metrics for process and projects.ppt
Chapter 11 Metrics for process and projects.pptssuser3f82c9
 
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT ijseajournal
 
Importance of software quality metrics
Importance of software quality metricsImportance of software quality metrics
Importance of software quality metricsPiyush Sohaney
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSijcsa
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSijcsa
 
Lecture3
Lecture3Lecture3
Lecture3soloeng
 
Software Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development ProjectsSoftware Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development ProjectsVishvi Vidanapathirana
 
Unit2 - Metrics.pptx
Unit2 - Metrics.pptxUnit2 - Metrics.pptx
Unit2 - Metrics.pptxrituah
 

Similar to 13 software metrics (20)

14 software technical_metrics
14 software technical_metrics14 software technical_metrics
14 software technical_metrics
 
Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application Effectiveness of software product metrics for mobile application
Effectiveness of software product metrics for mobile application
 
software metrics(process,project,product)
software metrics(process,project,product)software metrics(process,project,product)
software metrics(process,project,product)
 
Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)
 
Chapter 11 Metrics for process and projects.ppt
Chapter 11  Metrics for process and projects.pptChapter 11  Metrics for process and projects.ppt
Chapter 11 Metrics for process and projects.ppt
 
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
STATISTICAL ANALYSIS OF METRICS FOR SOFTWARE QUALITY IMPROVEMENT
 
Importance of software quality metrics
Importance of software quality metricsImportance of software quality metrics
Importance of software quality metrics
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
 
242296
242296242296
242296
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
55 sample chapter
55 sample chapter55 sample chapter
55 sample chapter
 
55 sample chapter
55 sample chapter55 sample chapter
55 sample chapter
 
Lecture3
Lecture3Lecture3
Lecture3
 
Software Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development ProjectsSoftware Metrics for Identifying Software Size in Software Development Projects
Software Metrics for Identifying Software Size in Software Development Projects
 
01 software engineering_aspects
01 software engineering_aspects01 software engineering_aspects
01 software engineering_aspects
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
Guide to Software Estimation
Guide to Software EstimationGuide to Software Estimation
Guide to Software Estimation
 
Unit2 - Metrics.pptx
Unit2 - Metrics.pptxUnit2 - Metrics.pptx
Unit2 - Metrics.pptx
 
Ijcet 06 06_001
Ijcet 06 06_001Ijcet 06 06_001
Ijcet 06 06_001
 

More from University of Computer Science and Technology

More from University of Computer Science and Technology (18)

Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real time-embedded-system-lec-06
Real time-embedded-system-lec-06Real time-embedded-system-lec-06
Real time-embedded-system-lec-06
 
Real time-embedded-system-lec-05
Real time-embedded-system-lec-05Real time-embedded-system-lec-05
Real time-embedded-system-lec-05
 
Real time-embedded-system-lec-04
Real time-embedded-system-lec-04Real time-embedded-system-lec-04
Real time-embedded-system-lec-04
 
Real time-embedded-system-lec-03
Real time-embedded-system-lec-03Real time-embedded-system-lec-03
Real time-embedded-system-lec-03
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real time-embedded-system-lec-07
Real time-embedded-system-lec-07Real time-embedded-system-lec-07
Real time-embedded-system-lec-07
 
12 software maintenance
12 software maintenance12 software maintenance
12 software maintenance
 
11 software testing_strategy
11 software testing_strategy11 software testing_strategy
11 software testing_strategy
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
09 coding standards_n_guidelines
09 coding standards_n_guidelines09 coding standards_n_guidelines
09 coding standards_n_guidelines
 
08 component level_design
08 component level_design08 component level_design
08 component level_design
 
07 interface design
07 interface design07 interface design
07 interface design
 
06 architectural design_workout
06 architectural design_workout06 architectural design_workout
06 architectural design_workout
 
05 architectural design
05 architectural design05 architectural design
05 architectural design
 
04 design concepts_n_principles
04 design concepts_n_principles04 design concepts_n_principles
04 design concepts_n_principles
 
03 requirement engineering_process
03 requirement engineering_process03 requirement engineering_process
03 requirement engineering_process
 
02 software process_models
02 software process_models02 software process_models
02 software process_models
 

Recently uploaded

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

13 software metrics

  • 1. Software Metrics What it is? What are the different Metrics? The act of collecting Software measurement Data. 13 January 2012 Made By Utpal Ray 1
  • 2. Software Metrics The Story So Far  4 Blocks SDLC ( Software Development Life Cycle ) Model Design and SPECIFI- Testing and Maintenance Development CATION Validation Software Measurement Process 13 January 2012 Made By Utpal Ray 2
  • 3. Software Metrics  Why do we do software measurement? Measurement is fundamental to any engineering discipline, and software engineering is no exception. To get an insight into the software process. To do process improvement. To make the quality of the product better. To express the qualitative factor by a number. To make a better estimate of the cost, schedule, complexity, effort requirements etc. of the s/w development process. 13 January 2012 Made By Utpal Ray 3
  • 4. Software Metrics  Why do we do software measurement? ( contd. ) The answer was nicely given by Lord Kelvin:- When you can measure what you are speaking about and express it in numbers, you know something about it; but when you cannot measure, when you cannot express it in numbers, your knowledge is of a meager and unsatisfactory kind: it may be the beginning of knowledge, but you have scarcely , in your thoughts, advanced to the stage of science. 13 January 2012 Made By Utpal Ray 4
  • 5. Software Metrics  Measures, Measurements, Metrics, Indicators Measure is a quantitative indication of the extent, size, amount, dimension, capacity of some attributes of a product or a process. Measurement is the act of determining a measure. Metric is a quantitative measure of the degree to which a system, component, or a process possesses a given attribute. An indicator is a metric or a combination of metrics that provide insight into the s/w process, a s/w project or the s/w product itself. 13 January 2012 Made By Utpal Ray 5
  • 6. Software Metrics  Measures, Measurements, Metrics, Indicators ( contd. ) S/W Engineering Process Measures Data Collection S/W Projects Metrics Metrics S/W Computation Products Metrics Indicators Evaluation 13 January 2012 Made By Utpal Ray 6
  • 7. Software Metrics  An example of “Measures, Measurements, Metrics, Indicators” All test engineers of a certain project started collecting the following measure – ‘The errors found in the test cycle’. But this measure is not enough to compute a suitable metric. You need two more measurements, which are number of test engineer and the number of months spent on the testing process. Suppose there were 5 test engineers and they spent about 6 months to do the necessary testing of the product. So, the total engineer-month is 30. 13 January 2012 Made By Utpal Ray 7
  • 8. Software Metrics  An example of “Measures, Measurements, Metrics, Indicators” ( contd. ) And let’s assume, all together they found about 60 errors. So, using all those measures mentioned above we can compute a Metric, which could be ‘Errors found per Engineer-Month’; and the value of that metric here is 2. This metric can be used here as an indicator regarding how efficient the test teams are or how good the product is. For example, after introducing an automated testing tool, the above metric may reach a value of ‘5’; which indicates the effectiveness of the automated testing tool used by the test team. So, this Metric can be used as an indicator of the efficiency of a project team. 13 January 2012 Made By Utpal Ray 8
  • 9. Software Metrics  Process, Project and Product Metrics - The process metrics are those metrics which are concerned with Software Development Life Cycle ( SDLC ). They can be used to improve the process efficiency of the SDLC. For example, the process metric ‘Defect Rate’ – the amount of defects reaching the customer can be used to improve the efficiency of the Development and the Testing team. If ‘Defect rate’ is less, we know that the efficiency of the Development and the Testing team is improving. 13 January 2012 Made By Utpal Ray 9
  • 10. Software Metrics  Process, Project and Product Metrics (contd.) - The project metrics are those metrics which are more relevant to a project team. They can be used to measure the efficiency of a project team or any other tools being used by the team members. One example of a project metric is ‘Errors found per engineer- month’ which was mentioned before. This is a relevant project metric for a test team. 13 January 2012 Made By Utpal Ray 10
  • 11. Software Metrics  Process, Project and Product Metrics (contd.) - The product metrics are those metrics which has more meaning in the perspective of the software product being developed. One of the example is, quality of the developed product. Considering the fact that quality is a subjective attribute, one needs a very good understanding of the measures based on which the quality metrics are computed. 13 January 2012 Made By Utpal Ray 11
  • 12. Software Metrics  Private and Public Metrics - The Private metrics are those metrics which are collected by individual software professionals. They are mostly used by any software professional to get an insight regarding how is his productivity or any other parameter of interests to him. For example, a test engineer may keep ‘errors found in a week’ as a private metric. Similarly, for a development engineer, ‘lines of code written in a week’ could be a private metric of interests to him. Also, an IT professional may keep ‘Number of new technology studied in a month’ as a private metric. 13 January 2012 Made By Utpal Ray 12
  • 13. Software Metrics  Private and Public Metrics ( contd. ) - The public metrics has more meaning on a overall team basis. The public metrics can be computed depending upon the private metrics made public by the individual software professional. They are more concerned with the project team rather than any individual software professional. The examples are, ‘Errors found per engineer-month’, ‘Lines of code written per engineer-month’, etc. 13 January 2012 Made By Utpal Ray 13
  • 14. Software Metrics  Private and Public Metrics ( contd. ) - It may happen that some of the product metrics are private metrics maintained by the individual engineer. When these metrics are shared by all the engineer on the team basis, those metrics can be combined to develop a set of project metrics on a project level. In addition to that, these project metrics can be consolidated to create a set of process metrics. So, at the end these process metrics become the public metrics for the whole organization. 13 January 2012 Made By Utpal Ray 14
  • 15. Software Metrics  Size Oriented Metrics The size oriented metrics are those metrics, which are computed keeping size of the software as main consideration. The size of the software are usually expressed in terms of KLOC ( Kilo Line Of Code ). The table on the following slide gives various project data ( measures ) for three different projects executed over 3 successive years. Using those project data one can come out with different size oriented metrics. 13 January 2012 Made By Utpal Ray 15
  • 16. Software Metrics  Size Oriented Metrics ( contd. ) Project Line of Total Cost Doc Errors Defects No of Name Code Effort in ( Lac Produc found found person ( LOC) person- of Rs ) ed ( in test in the s month pages ) Cycle field ALPHA 12,000 24 5 400 150 25 3 ( 2002 ) BETA 24,000 50 12 1000 250 50 6 ( 2003 ) GAMMA 18,000 33 8 800 175 30 5 ( 2004 ) 13 January 2012 Made By Utpal Ray 16
  • 17. Software Metrics  Size Oriented Metrics ( contd. ) The four different metrics which can be computed from the previous table are, Errors per KLOC, Defects per KLOC, Cost per KLOC and Doc per KLOC. Errors per Defects per Cost per Doc per KLOC KLOC KLOC (Thou) KLOC ALPHA 12.5 2 42 33 ( 2002 ) BETA 10.4 2 50 41 ( 2003 ) GAMMA 9.7 1.5 44 44 ( 2004 ) 13 January 2012 Made By Utpal Ray 17
  • 18. Software Metrics  Size Oriented Metrics ( contd. ) If we try to evaluate these metrics, we may end up finding one or two major indicators. These indicators may point towards a better quality process which was incorporated during those three years. For example, both ‘Error rate’ and ‘Defect Rate’ were gradually down as recent projects had been executed. These may give indication that, whatever quality process methodology was introduced during those projects had given out results towards the right direction. 13 January 2012 Made By Utpal Ray 18
  • 19. Software Metrics  Function Oriented Metrics (A. J. Albrecht, 1979) It’s a metric which gives the degree of functionality delivered by a software system. Since ‘functionality’ can not be measured directly; an indirect measurement is done by computing Function-Point ( FP ). FP is derived using an empirical relationship based on countable ( direct ) measures of software’s information domain and assessment of software complexity. FP can be computed by completing the table shown in the next slide and then applying some formulae. 13 January 2012 Made By Utpal Ray 19
  • 20. Software Metrics  Function Oriented Metrics ( contd. ) Measurement count Weighing Factor Sub- Parameter Simple Average Complex total No of User Inputs X 3 4 6 = No of User Outputs X 4 5 7 = No of User Inquiries X 3 4 6 = No of Files X 7 10 15 = No of External X 5 7 10 = Interfaces Count Total 13 January 2012 Made By Utpal Ray 20
  • 21. Software Metrics  Function Oriented Metrics ( contd. ) The weighing factor mentioned in the previous table depends upon the fact, whether that particular entry is simple, average or complex. FP can be given by the following formulae- FP = Count-Total x [ 0.65 + 0.01 x ( Fi ) ] Where, Fi ( i=1 to 14 ) are “complexity adjustment value”, based on the responses of the following questions. Each of the question is answered in a scale of 0 ( not important or applicable ) to 5 ( absolutely essential ). 13 January 2012 Made By Utpal Ray 21
  • 22. Software Metrics  Function Oriented Metrics ( contd. ) Complexity Adjustment Questions 1. Does the system require reliable Backup and Recovery? 2. Are Data Communication required? 3. Are there any Distributed Processing function? 4. Is Performance critical? 5. Will the system run in an existing, heavily utilizied 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 ? 13 January 2012 Made By Utpal Ray 22
  • 23. Software Metrics  Function Oriented Metrics ( contd. ) Complexity Adjustment Questions ( contd. ) 8. Are the Master files updated Online? 9. Are the Inputs, Outputs, Inquiries, Files complex ? 10. Is the Internal Processing complex ? 11. Is the code designed to be Re-usable? 12. Are Conversion and Installation included in the design ? 13. Is the system designed for Multiple Installation in different organization ? 14. Is the application designed to facilitate Change and Ease of Use by the user? 13 January 2012 Made By Utpal Ray 23
  • 24. Software Metrics  Function Oriented Metrics ( contd. ) Once the FP is computed, the following metrics can be derived using FP as a normalization value. - Errors per FP Defects per FP Cost per FP Doc per FP FP per person-month 13 January 2012 Made By Utpal Ray 24
  • 25. Software Metrics  The relationship between LOC and FP ( C. Jones, 1998 ) Prog Lang LOC/FP Assembly Lang 320 C 128 COBOL 106 FORTRAN 106 PASCAL 90 C++ 64 VISUAL BASIC 32 POWEBUILDER 16 SQL 12 13 January 2012 Made By Utpal Ray 25
  • 26. Software Metrics  Defect Removal Efficiency ( DRE ) It is a metric which benefits both in the project level and process level. DRE is defined as; DRE= E / ( E + D ) Where, E is the number of errors found before the delivery of the software to the end user and D is the number of defects found after delivery. Ideally DRE should be 1 (means D is zero). DRE can also be used within a project team, to measure the team’s efficiency. In that context, E is the total number of errors uncovered in the project team; and D is the total number of defects uncovered in the next stage. 13 January 2012 Made By Utpal Ray 26
  • 27. Software Metrics  HOME TASK 1. Give 2 more examples of private metrics. 2. Think about 3 more metrics based on LOC. 3. Think about 2 more metrics based on FP. 4. Compute the FP for ‘SafeHome’ problem. 5. Compute the FP for the ‘Max Number’ prog. 13 January 2012 Made By Utpal Ray 27