jpeek icon indicating copy to clipboard operation
jpeek copied to clipboard

LCOM4 returns values less than 1?

Open Mathias83 opened this issue 4 years ago • 3 comments

Hello, everyone, when evaluating one of my projects using the LCOM4 metric I come across values that are implausible for me. Basically LCOM4 should be at least 1, because here the connected components are calculated in the graph. But I usually get values smaller than 1. Even with files where I assume that they have more than one component.

Did I misunderstand the metrics or is there really a mistake here?

Mathias83 avatar Jul 07 '20 15:07 Mathias83

@paulodamaso/z please, pay attention to this issue

0crat avatar Jul 07 '20 15:07 0crat

@0crat in

paulodamaso avatar Jul 26 '20 19:07 paulodamaso

LCOM4 is the number of components, isn't it? The value must be an integer. Why does it have float value? Do u divide the value by anything? I wanted to create an issue, but I see that @Mathias83 has the same problem.

Moreover, I see a negative value. How is it possible?

Here is the project I checked:

classes.zip

Could you please fix it?

FireShot Capture 104 - LCOM4 -

lyriccoder avatar Aug 18 '20 13:08 lyriccoder