Research Article

An Empirical Study of Software Metrics Diversity for Cross-Project Defect Prediction

Table 2

Four types of software metrics will be involved in this paper.

CategoryMetric description

Process metrics (15-dimension)numberOfVersionsUntilavgLinesAddedUntilmaxLinesAddedUntil
numberOfFixesUntillinesRemovedUntilmaxCodeChurnUntil
numberOfRefactoringsUntilmaxLinesRemovedUntilavgCodeChurnUntil
numberOfAuthorsUntilavgLinesRemovedUntilageWithRespectTo
linesAddedUntilcodeChurnUntilweightedAgeWithRespectTo

CK-OO metrics (17-dimension)Coupling between object classesResponse for a ClassnumberOfMethodsInherited
Depth of Inheritance TreeWeighed Methods per ClassnumberOfPrivateAttributes
Afferent CouplingsnumberOfAttributesnumberOfPrivateMethods
Efferent CouplingsnumberOfAttributesInheritednumberOfPublicAttributes
Lack of Cohesion in MethodsnumberOfLinesOfCodenumberOfPublicMethods
Number of ChildrennumberOfMethods
Structural metricsA d-dimensional space of features (d = 32)
Semantic metricsA d-dimensional space of features (d = 32)