[Jprogramming] reducing matrix

Björn Helgason gosinn at gmail.com
Sat Oct 20 23:11:01 HKT 2007


What I want to do is able to show relationships

something(s#) in a time(t#) and a place(p#)
being able to shift the matrix in order to switch between representations of
contents and labels

      t0 t1 t2
s0  p1 p1 p1
s1  p2 p2 p2
s2  p1 p2 p1
s3  p2 p1 p1

I am not absolutely sure how to do the switch and turn the matrix to display
in the grid or grids.

Any of these can have a vast number like the timescale(t#) can be
30.000entries and s# something like 1000 and p# 1000 too.

there is a one - one relationship s# in t# can only be in one p#
p# can contain a number of s# in any t#
In any t# there can be a number of s# in any p#

       p?
t?    s?

      p?
s?   t?


a looks like

a=:4 3$'p1';'p1';'p1';'p2';'p2';'p2';'p1';'p2';'p1';'p2';'p1';'p1'




2007/10/20, Raul Miller <rauldmiller at gmail.com>:
>
> On 10/20/07, Björn Helgason <gosinn at gmail.com> wrote:
> >   b-:($a)$,(a=<'s1') #"0 a
> > I would like a nicer looking expression
>
> If a is meant to represent arbitrary data, and a=<'s1' an
> arbitrary criterea, then you might want something like:
>    b-:(a = <'s1'){"_2&.|: a:,:a
>
> However, if this is representative data, then maybe
>    b-:(a = <'s1'){ '';'s1'
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: gosinn at gmail.com
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.
         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |        (\_ _/)
  (`-.  '--.)       (='.'=)
   `. )----'        (")_(")


More information about the Programming mailing list