Quantcast
Typesetting math: 100%

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=(N1+N2)(log2(η1+η2))
(N1)Total Number of Operators
(N2)total number of operands
(η1)Number of distinct operators
(η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=(N1+N2)(log2(η1+η2))

where: The inputs for the Software Volume estimation are:

  • HC - Halstead Complexity estimate volume of code
  • N1 - the total number of operators
  • N2 - the total number of operands
  • η1 - the number of unique operators
  • η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.