benford_s_law's People
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?
dw
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.