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"` |
|
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 = (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, references 0 pages
This equation, Halstead Complexity - Volume, is used in 1 page