halstead(1)

halstead1

Program that estimates module complexity.

Usage

halstead files ...

Overview

halstead provides various indicators of the module's complexity. The module is examined to determine the following:

n1 == number of unique operators

n2 == number of unique operands

N1 == number of total operators

N2 == number of total operands

The program outputs these fields:

File Name

Program Length (N = N1 + N2)

Program Volume (V = N log<base2> (n1 + n2))

Program Level (L = (2/n1) * (n2/N2))

Mental Discriminations (E^ = V / L)

The program volume (aka ``Halstead Volume'') is probably most useful and seems to be reasonably well correlated with error counts for modules.

Author

This manual page was written by <[email protected]>, for the Debian GNU/Linux system (but may be used by others).

From metrics 1.0-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.