This line looks suspicious to me because #y is always an integer already, and <. seems to do nothing.
nbins=. 1 Round (<.#y)^0.5 The following result also looks suspicious because the sum of the result is only 19, not 20. discretize i. 20 1 4 5 5 4 I am very interested in your script. Thanks for sharing. -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
