Code Monkey home page Code Monkey logo

Comments (4)

victorgabr avatar victorgabr commented on July 17, 2024

The list of implemented metrics is located at:

https://github.com/victorgabr/ApertureComplexity/blob/master/complexity/PyComplexityMetric.py

I am not sure what you mean by MCS, but there are many on the file above.

from aperturecomplexity.

yograjyog avatar yograjyog commented on July 17, 2024

Thanks. Can u plz give a sample code on how to calculate MeanApertureAreaMetric. Appreciate your help.

I have tried this

`from complexity.PyComplexityMetric import MeanApertureAreaMetric
from complexity.dicomrt import RTPlan

if name == 'main':

pfile ='E:\MedPhy\Medical Physics Library\Research\Aperture Shape Controller Evaluation\High.dcm'
plan_info = RTPlan(filename=pfile)
plan_dict = plan_info.get_plan()
beams = [beam for k, beam in plan_dict['beams'].items()]
complexity_obj = MeanApertureAreaMetric()
mean_aperture_area = complexity_obj.Calculate`????

I am stuck.

from aperturecomplexity.

victorgabr avatar victorgabr commented on July 17, 2024

I have added more examples.
Other metrics inherited from PyComplexityMetric. So the API for usage is the same.
Check the README.md.

There are also more complex metrics on the file:
https://github.com/victorgabr/ApertureComplexity/blob/master/complexity/misc.py

Including MCS.

from aperturecomplexity.

yograjyog avatar yograjyog commented on July 17, 2024

Thanks a lot

from aperturecomplexity.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.