For now, you can use sequence-map to turn the hashtable into a sequence of
vectors.
#lang racket
(require math)
(require plot)
(discrete-histogram (sequence-map vector (in-hash (samples->hash '(1 2 3 4
4)
But it would be nicer if discrete-histogram took a hash as input.
On Tue, Jun 7,
Hello,
Something like the following would be ideal to build a histogram from a
sequence of values read in via CSV
#lang racket
(require math)
(require plot)
(discrete-histogram (samples->hash '(1 2 3 4 4)))
However discreet histogram takes a list of vectors. Is there a way to achieve
2 matches
Mail list logo