The dyad ,&<"r can be used to illustrate rank: ] x=: 4 3 2 [EMAIL PROTECTED] 5 0 2 3 4 2 2
0 0 0 3 3 0 0 0 4 1 4 0 1 4 4 3 0 2 ] y=: 3 2 [EMAIL PROTECTED] 5 4 0 1 2 2 4 x ,&<"_1 _ y +---+---+ |0 2|4 0| |3 4|1 2| |2 2|2 4| +---+---+ |0 0|4 0| |0 3|1 2| |3 0|2 4| +---+---+ |0 0|4 0| |4 1|1 2| |4 0|2 4| +---+---+ |1 4|4 0| |4 3|1 2| |0 2|2 4| +---+---+ x -"_1 _ y _4 2 2 2 0 _2 _4 0 _1 1 1 _4 _4 0 3 _1 2 _4 _3 4 3 1 _2 _2 Likewise the monad <"r <"_1 x +---+---+---+---+ |0 2|0 0|0 0|1 4| |3 4|0 3|4 1|4 3| |2 2|3 0|4 0|0 2| +---+---+---+---+ +/"_1 x 5 8 3 3 8 1 5 9 <"1 x +---+---+---+ |0 2|3 4|2 2| +---+---+---+ |0 0|0 3|3 0| +---+---+---+ |0 0|4 1|4 0| +---+---+---+ |1 4|4 3|0 2| +---+---+---+ +/"1 x 2 7 4 0 3 3 0 5 4 5 7 2 ----- Original Message ----- From: Roelof Brouwer <[EMAIL PROTECTED]> Date: Wednesday, September 5, 2007 7:40 Subject: RE: [Jgeneral] normalize data To: 'General forum' <[email protected]> > Thanks. I guess that -"_1 _ means > that subtraction is performed over > the first dimension of the left argument ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
