search for: myrho_y

Displaying 1 result from an estimated 1 matches for "myrho_y".

Did you mean: myrho_x
2006 Sep 22
4
Creating Movies with R
...*exp(-1/2*(y-expect_position)^2/sigma_pos)- 1/sqrt(2*pi*sigma_pos)*exp(-1/2*(y+expect_position)^2/sigma_pos) } newy<-seq(ymin,ymax,len=nx) # grid along y with the same # of points as the one along x rho_y_t<-matrix(ncol=nx,nrow=tsteps-1) for (i in 2:tsteps) {mypar<-c(exp_y[i],sig_yy[i]) myrho_y<-do.call("rho_y",c(list(y=newy),mypar)) rho_y_t[ i-1, ]<-myrho_y } rho_y_t_scaled<-matrix(ncol=nx,nrow=tsteps-1) for (i in 2:tsteps) {mypar<-c(exp_y[i],sig_yy[i]) myrho_y<-do.call("rho_y",c(list(y=newy),mypar)) rho_y_t_scaled[ i-1, ]<-myrho_y/max(myrho_y) }...