How to calculate CBO and LCOM for a class using Python and SciTools Understand API -
How to calculate CBO and LCOM for a class using Python and SciTools Understand API -
in python, how can calculate lcom (lack of cohesion) c++ files (or other file types) using scitools understand api?
for assignment, we're asked calculate lcom ourselves instead of using scitools's understand.
to calculate lcom4, need next metrics,
number of functions/methods in class (given understand "countdeclfunction")
number of method pairs in class @ to the lowest degree 1 instance variable commonly utilize or define in body.
number of method pairs in class have @ to the lowest degree 1 instance method commonly phone call in body.
any suggestion much appreciated.
from metrics listed on https://scitools.com/support/metrics-reports/, believe have develop own metrics complement understand provides.
python scitools
Comments
Post a Comment