Quantcast

Halstead Complexity - Volume

Last modified by
on
Sep 29, 2022, 12:50:40 AM
Created by
on
Dec 1, 2013, 7:59:33 AM
`HC = ( N_1 + N_2 ) * (log_2( eta_1 + eta_2 )) `
`(N_1)"Total Number of Operators"`
`(N_2)"total number of operands"`
`(eta_1)"Number of distinct operators"`
`(eta_2)"Number of distinct operands"`

The Halstead Complexity calculator computes an estimate of the size of a body of software based the total and unique number of operators and operands.

INSTRUCTIONS: Enter the following:

  • (N1) Total number of operators
  • (N2) Total number of operands
  • 1) Number of unique operators
  • 2) Number of unique operands

Halstead Complexity (HC): The calculator returns the volume factor as a real number.

The Math / Science

Halstead Complexity calculations were intended to provide software metrics established as an empirical science of software development.

The Volume estimation provides a general estimate of the code size.  

      `HC = (N_1 + N_2) * (log_2(eta_1 + eta_2)) `

where: The inputs for the Software Volume estimation are:

  • HC - Halstead Complexity estimate volume of code
  • `N_1` - the total number of operators
  • `N_2` - the total number of operands
  • `eta_1` - the number of unique operators
  • `eta_2` - the number of unique operands

This equation, Halstead Complexity - Volume, is used in 1 page
  • Comments
  • Attachments
  • Stats
No comments
This site uses cookies to give you the best, most relevant experience. By continuing to browse the site you are agreeing to our use of cookies.