[Jprogramming] Grade Up/Down with tables
Henry Rich
HenryHRich at nc.rr.com
Thu Aug 31 23:39:47 HKT 2006
All this means is that the first item in each row is the
major sort key, followed by the second item, and so on.
The base value is the single number you would get from applying
# to the row. In your example, you could use
20 #. 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3
489626 488563 971203
as the values to be sorted.
The base needs to be more than twice the magnitude to make sure
that 0 10 is less than 1 _10 for example.
Henry Rich
> -----Original Message-----
> From: programming-bounces at jsoftware.com
> [mailto:programming-bounces at jsoftware.com] On Behalf Of June Kim
> Sent: Thursday, August 31, 2006 11:34 AM
> To: Programming forum
> Subject: [Jprogramming] Grade Up/Down with tables
>
> >From J Dictionary:
>
> <quote>
> If y is a table, /:y grades the base value of the rows, using a base
> larger than twice the magnitude of any of the elements.
> </quote>
>
> What does "base" mean here?
>
> For example,
>
> /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3
> 3 1 1 8 3
> 3 1 4 1 6
> 6 1 8 0 3
>
> What is the base value of the rows in this case(and why twice the
> magnitude of any of the elements)?
> ----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list