This suggests the verb
2.5 5 7.5 #/.~@:I. 1 3 3 3 4 7 7 8 8 9
1 4 2 3
but there is a problem: if an interval has no members, it doesn't show
as 0, but instead is omitted:
0.5 2.5 5 7.5 #/.~@:I. 1 3 3 3 4 7 7 8 8 9
1 4 2 3
to make sure every interval has a corresponding count, use
0.5 2.5 5 7.5 <:@:(#/.~)@:(i.@>:@#@[ , I.) 1 3 3 3 4 7 7 8 8 9
0 1 4 2 3
Henry Rich
On 5/8/2016 7:27 AM, bill lam wrote:
#/.~ 2.5 5 7.5 I. 1 3 3 3 4 7 7 8 8 9
1 4 2 3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm