Halstead Program Level
From Maisqual Wiki
Contents |
Definition
Halstead Program Level defines a ratio between the Potential Volume V^{ * } of the algorithm and its actual volume V. It represents the implementation level of the algorithm characterized by V^{ * }. For the same algorithm, the program level decreases as the program volume increases.
where
- L is the Halstead Program Level,
- V^{ * } is the Halstead Potential Volume,
- V is the Halstead Program Volume,
Using the Potential Volume evaluation formula produces the following definition.
where
- L is the Halstead Program Level,
- n_{1} is the number of distinct operators,
- n_{2} is the number of distinct operands, and
- N_{2} is the total number of operands.
See also
Metrics: