|
|
|
Software metrics are
frequently used in software maintenance tasks. Metrics are measurements of
program source codes.
|
|
In this paper we
examined two types of metrics.
|
|
Complexity metrics
are actually statistical measurements of certain code properties. There are
many well-known classic complexity metrics such as CC and IFIN
|
|
For example, CC is a
complexity metric which measures the total cyclomatic complexity of the code.
It is the total number of conditional statements plus 1. Therefore in the
left example, this metric is 3.
|
|
Reuse metrics are
measurements of similarities amongst codes. The similarities are typically
measured using an edit distance approach. We have examined three approaches
here, string-based edit distance, tree-based edit distance, as well as a
token-based edit distance approach.
|