Giter VIP home page Giter VIP logo

hyst's Introduction

hyst

Write a histogram in Terminal.

Build Status

Installation

brew install https://raw.githubusercontent.com/winebarrel/hyst/master/homebrew/hyst.rb

Usage

Usage of hyst:
  -w int
      Width
$ ruby -e 'puts 1000.times.map { %w(foo bar zoo)[rand(3)] }' > rand.txt

$ head rand.txt
zoo
zoo
bar
foo
zoo
bar
zoo
zoo
bar
zoo

$ cat rand.txt | hyst
zoo  351  ##################################################
foo  341  ################################################
bar  308  ###########################################
$ ruby -rdistribution -e 'normal = Distribution::Normal.rng(1); puts 1_000.times.map {normal.call * 100}' > gauss.txt

$ head gauss.txt
213.57863028255827
-103.40921634097238
-11.296606231306994
162.5407288364103
110.5574029438751
24.64428067386242
30.02832601441755
100.63481149177946
-23.661175314447913
185.2196657484519

$ cat gauss.txt | hyst -w 50
-250    1
-200    2
-150    4
-100   12  ##
 -50   51  ##########
   0  247  ##################################################
  50  198  ########################################
 100  198  ########################################
 150  137  ###########################
 200   96  ###################
 250   36  #######
 300   15  ###
 350    2
 400    1

Installation

OS X

brew install https://raw.githubusercontent.com/winebarrel/hyst/master/homebrew/hyst.rb

hyst's People

Watchers

oqrusk avatar

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.