Coder Social home page Coder Social logo

Comments (5)

tbroyer avatar tbroyer commented on August 14, 2024 1

Doesn't that directly depend on how the q-values are computed? In the above links, if the computeQuantile functions multiplied their result by 5 then the final formula would be the same as the one on the website.
(and that 5 factor is due to the fact that computeQuantile currently returns a value between 0 and 20, not between 0 and 100)

from ecoindex.

bordage avatar bordage commented on August 14, 2024 1

@tbroyer : you are right. That's the good answer.

from ecoindex.

vvatelot avatar vvatelot commented on August 14, 2024

🙏🏻 Praise: Thank you for your contribution @emidevops

I think that the documentation is not up to date because all the projects of Cnumr are using this formula from what I know:

round(100 - 5 * (3 * q_dom + 2 * q_req + q_size) / 6)

https://github.com/cnumr/GreenIT-Analysis/blob/ca1d15baa5cc0ee02a13a2a49b332704de0cb476/script/ecoIndex.js#L34

https://github.com/cnumr/GreenIT-Analysis-cli/blob/9c1f010ad939782fab6fa1033d0ac267da547760/greenit-core/ecoIndex.js#L35

https://github.com/cnumr/ecoindex_js/blob/3b58a54abff149da7944e707132eec8242e00227/src/index.js#L35

@bordage can you confirm?

from ecoindex.

github-actions avatar github-actions commented on August 14, 2024

Cette issue a été marquée comme inactive car elle n'a pas eu de mise à jour depuis 30 jours. Si elle n'est pas mise à jour d'ici 7 jours, elle sera fermée automatiquement. Pour éviter qu'elle soit fermée, vous pouvez ajouter le label keep open.

from ecoindex.

github-actions avatar github-actions commented on August 14, 2024

Cette issue a été fermée car elle est inactive depuis 37 jours. Si vous pensez que c'est une erreur, vous pouvez la rouvrir.

from ecoindex.

Related Issues (20)

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.