Yes. 

load 'viewmat'
A=:,.?10#10000
B=: ,. %>:?10#10000
C=:,.-?10#10000
D=: ,. -%>:?10#10000
E=:,._5000+?10#10000
F=: ,. _0.5+%>:?10#10000
_0.499805
T=:A,.B,.C,.D,.E,.F
RT=:(6?6){"1 T 
PAL=:6 3$0 0 255 0 255 255 0 255 0 255 255 0 255 0 0 255 0 255
RGB=:( #:i.8){0 255
GRB=:1 0 2{"1 RGB
ro=: 13 :'<.0.5+y'
we=: 13 :'+/"1[0.3 0.59 0.11*"1 y'
gray=: 13 :'3#"0 ro we y'
(gray GRB)viewmat RT;'gray GRB RT'
(gray RGB)viewmat RT;'gray RGB RT'
(gray PAL)viewmat RT;'gray PAL RT'
GRB viewmat RT;'GRB T'
RGB viewmat RT;'RGB T'
viewmat RT;'RT'
RT

Sorry,  Linda

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of bill lam
Sent: Monday, August 11, 2014 3:37 AM
To: Programming forum
Subject: Re: [Jprogramming] Can color really help in data analysis?

Did you forget to include the attachment as in-line text?

On Mon, Aug 11, 2014 at 2:45 PM, Linda Alvord <[email protected]>
wrote:
> I don't have a 64 bit machine so I haven't been experiment with jd.
> However, I'm interested in using color to analyze real data arrays.
>
> This is only a sample of random data, but you could replace RT with some
> larger chunk of real data as well.
>
>
>
> My instinct is that color would be helpful for analyzing real  data.  Run
> the code below in a new temp folder in jqt.
>
> In the terminal is a random table of numeric data.  You will also have 6
> viewmat  images which you can move aroud on the screen. Also you can
> maximize the image if that helps answer my question.
>
>
>
>   Can you use the images to locate the second largest number in the entire
> table.  Also can you locate the one larger than the smallest.
>
>
>
> When you run the code again you will get a new random table to analyze.
> When you have an answer to these two questions, please answer these two
> questions. Any interesting observations would also be helpful.
>
>
>
> Which of the six images is most helpful?
>
>
>
> Are you colorblind?
>
>
>
> Thanks in advance.  Linda
>
>
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to