Giter VIP home page Giter VIP logo

benford_s_law's People

Contributors

alexqueue avatar bennacer860 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

benford_s_law's Issues

Use a different graphing/charting utility

As for the making of the chart, you might want to use something like ascii_charts to produce really nice looking graphs or charts. Here's an example. Say we use that ascii_charts gem. We take the hash that your script already gives us, and convert it into an array. Then we use the ascii_charts gem.

array = []
{"1"=>56.86, "2"=>20.68, "3"=>8.15, "4"=>5.37, "5"=>2.98, "6"=>2.19, "7"=>0.99, "8"=>1.19, "9"=>1.59}.each { |k,v| array << [k,v] }
puts AsciiCharts::Cartesian.new(array).draw

And get a really nice looking result of.

60.0|                  
55.0|*                 
50.0|                  
45.0|                  
40.0|                  
35.0|                  
30.0|                  
25.0|                  
20.0|  *               
15.0|                  
10.0|    *             
 5.0|      * *         
 0.0+----------*-*-*-*-
     1 2 3 4 5 6 7 8 9

Or maybe even experiment with Google Charts?

Disable Wiki

I always disable the wiki on a repository if I'm not going to write any in-depth documentation; this is because so people don't think there is any additional documentation. Just go to Settings>Features section>Wikis (untick checkbox).

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.