Java Developer Tools

Metrics - Details - Halstead

This group contains metrics defined by the Halstead Software Science metrics..

Difficulty

This is a measure of difficulty. It is computed by

([Number Of Unique Operators] / 2) * ([Number Of Operands] / [Number Of Unique Operands])

Applicability

This metric can be computed for any method or method container.

Effort

This is a measure of effort. It is computed by

[Difficulty] * [Program Volume]

Applicability

This metric can be computed for any method or method container.

Number of Operands

This is the number of operands used in the scope.

Applicability

This metric can be computed for any method or method container.

Number of Operators

This is the number of operators used in the scope.

Applicability

This metric can be computed for any method or method container.

Number of Unique Operands

This is the number of unique operands used in the scope.

Applicability

This metric can be computed for any method or method container.

Number of Unique Operators

This is the number of unique operators used in the scope.

Applicability

This metric can be computed for any method or method container.

Program Length

This is an estimation of the size of the program. It is computed by

[Number Of Operators] + [Number Of Operands]

Applicability

This metric can be computed for any method or method container.

Program Vocabulary

This is an estimation of the size of the program's vocabulary (the number of things that must be known to understand the program). It is computed by

[Number Of Unique Operators] + [Number Of Unique Operands]

Applicability

This metric can be computed for any method or method container.

Program Volume

This is an estimation of the size of the program. It is computed by

[Program Length] * log2([Program Vocabulary])

Applicability

This metric can be computed for any method or method container.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.