Histogram

23 views
Skip to first unread message

fernando...@gmail.com

unread,
Mar 3, 2016, 7:41:31 AM3/3/16
to jStat
How to create a histogram with no numeric attributes?
Example:

var studentSymbols = ["F", "E", "D", "C", "C", "C", "C", "B", "B", "A", "A+"];
var histogram = jStat.histogram(studentSymbols);
// return [0, 0, 0, 0]

James Gibson

unread,
Mar 4, 2016, 2:18:47 PM3/4/16
to jStat
Are you looking to just get counts of each of these variables? Histograms are used for interval data, so jStat only supports generating histograms from numbers.

I assume you're looking at an array of academic grades; maybe convert the array to GPA points first?

-james


On Thursday, March 3, 2016 at 7:41:31 AM UTC-5, Fernando Andrade wrote: > How to create a histogram with no numeric attributes? > Example: > > var studentSymbols = ["F", "E", "D", "C", "C", "C", "C", "B", "B", "A", "A+"]; > var histogram = jStat.histogram(studentSymbols); > // return [0, 0, 0, 0]
Reply all
Reply to author
Forward
0 new messages