Sunday, July 29, 2007

Metrics for Source Code (Halstead's Theory)

Four scalar numbers are used to measure a program

n1 = the number of distinct operators
n2 = the number of distinct operands
N1 = the total number of operators
N2 = the total number of operands

Source: Halstead Complexity Measures


No comments: