You might try the verb histogram1 at http://www.jsoftware.com/jwiki/BrianSchott/Histogram
histogram=: <: @ (#/.~) @ (i. @[EMAIL PROTECTED] , I.) histogram1=: <: @ (#/.~) @ (i.@>:@[EMAIL PROTECTED] , I.) 10 20 histogram1 11 21 0 1 1 On Sun, 6 Apr 2008, June Kim wrote: from http://www.jsoftware.com/jwiki/Essays/Histogram <quote> histogram=: <: @ (#/.~) @ ([EMAIL PROTECTED]@[ , I.) The left argument is a list of interval start points. The right argument is an array of data. The result is a list of counts of the number of data points in each interval. </quote> However, 10 20 histogram 11 21 0 1 0 I expected 1 1. I think the J code and the explanation below it doesn't match exactly. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm (B=) <----------my "sig" Brian Schott Atlanta, GA, USA schott DOT bee are eye eh en AT gee em ae eye el DOT com http://schott.selfip.net/~brian/ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
