From: Identifying influential metrics in the combined metrics approach of fault prediction
CK Metric (Chidamber and Kemerer1994) | Interpretation |
---|---|
Coupling between bbject classes (CBO) | Investigates the coupling between classes by taking the dependency of one class with other classes into consideration. |
Depth of the inheritance tree (DIT) | Investigates the complexity of inheritance hierarchy by counting ancestor levels in the inheritance tree. |
Lack of cohesion metric (LCOM) | Investigates cohesion with a class by measuring the dissimilarity of methods. |
Response for the classes (RFC) | Investigates the coupling between classes by calculating the sum of the number of local methods and the methods that can be called remotely. |
Weighted methods per class (WMC) | Investigates the complexity of class by summing up the complexity of methods. |
Number of children (NOC) | Investigates complexity of inheritance hierarchy by counting the number of immediate subclasses of a class. |
OO (Object oriented) | Interpretation |
NOA | Number of attributes. |
FanIn | Number of other classes that reference the class. |
FanOut | Number of other classes referenced by the class. |
NOAI | Number of attributes inherited. |
NLOC | Number of lines of code. |
NOM | Number of methods. |
NOMI | Number of methods inherited. |
NOPRA | Number of private attributes. |
NOPRM | Number of private methods. |
NOPA | Number of public attributes. |
NOPM | Number of public methods. |