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 |
|
Enter a value for all fields |
|
|
|
Tags | |
UUID | e6d0c5f5-da27-11e2-8e97-bc764e04d25f |
|
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, references 0 pages
This equation, Halstead Complexity - Volume, is used in 1 page