#!/usr/bin/env clj (ns histosample (:use [incanter core charts] [clojure.contrib.duck-streams :only (read-lines)])) (def data (if *command-line-args* (map #(Integer/parseInt %) (read-lines (first *command-line-ar +gs*))) (take 500 (iterate (fn [_] (int (rand 100))) 0)))) (let [max (reduce max data) min (reduce min data) nbins (Math/abs (- ma +x min))] (view (histogram data :nbins nbins :x-label "Value")))
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Perl code for a Histogram
by Fletch
in thread Perl code for a Histogram
by krish28
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |