[R] L(x,y,t)?
Bill Simpson
wsi at gcal.ac.uk
Fri Apr 28 12:33:50 CEST 2000
I have been using the following method to create L(x,t)
x<-seq(1,66)
time<-seq(1,19)
v0<-.01
f0<-function(x,time) .45*cos(2*pi*3*x/66+v0*time)
L0<-outer(x,time,f0)
If I do image(L0) I get an x,t plot of a drifting cosine wave grating.
The grating is actually a pattern of fuzzy bars; I have been ignoring the
y dimension (because the grating is vertical: y has no effect on the
luminance). However now I want to use it, and get L0(x,y,t).
I don't really understand outer, and my experiments with it have not
worked. The basic idea is that I want a 19 frame movie and each frame
is a 66 x 31 image of a cosine grating. How to do it?
Thanks very much for any help!
Bill
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list