search for: gaussmap

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

Did you mean: gaussmaps
2011 Apr 09
1
For->lapply->parallel apply
...my program faster. The following code: Gauslist<-array(data=NA,dim=c(dimx,dimy,dimz)) for (i in c(1:dimz)){ print(sprintf('Creating the %d map',i)); Gauslist[,,i]<-f <- GaussRF(x=x, y=y, model=model, grid=TRUE,param=c(mean,variance,nugget,scale,Whit.alpha)) } creates 100 GaussMaps (each map is of 256*256 dim) and stores them in a matrix called Gauslist. This process takes too long, so I was thinking if you can help me understand what should I do to make it run in parallel (in work there is a system with 16 cores). There is mclapply (parralel version of lapply) . If I make...