search for: dx3

Displaying 6 results from an estimated 6 matches for "dx3".

Did you mean: dx
2010 Aug 10
3
sapply/lapply instead of loop
Using the input below, can I do something more elegant (and more efficient) than the loop also listed below to pad strings to a width of 5? The true matrix is about 300K rows and 31 columns. ####################### #INPUT ####################### > temp DX1 DX2 DX3 1 13761 8125 49178 2 63371 v75 22237 3 51745 77703 93500 4 64081 32826 v72 5 78477 43828 87645 > ####################### #CODE ####################### ssize <- c(nrow(temp), ncol(temp)) aa <- c(1:ssize[2]) aa <- paste("DX", aa, sep = "") record <- matrix(&...
2006 Aug 09
2
Speeding indexing and sub-sectioning of 3d array
Hi, I am having a problem with a very slow indexing and sub-sectioning of a 3d array: > dim(arr) [1] 245 175 150 For each point in the array, I am trying to calculate the mean of the values in its surrounding: mean( arr[ (i - radius):(i + radius), (j - radius):(j + radius), (k - radius):(k + radius)] ) Putting that code in 3
2009 Sep 25
1
simulating a model
...follows: require(simecol) mod1 <- new("odeModel",   main = function(time, init, parms) {   x <- init   p <- parms     dx1 <- p["K"] - p["alpha"]*x[1]*x[2] - p["gamma"]*x[1]     dx2 <- x[1]*x[2]*(p["alpha"] - p["beta"])     dx3 <- p["beta"]*x[1]*x[2] + p["gamma"]*x[1]     list(c(dx1, dx2, dx3)) }, times = c(from=0, to=100, by=0.1), parms = c(K=100, alpha=0.3, gamma=0.5, beta=0.2), init = c(S=500, V=100, R=0), solver = "lsoda" ) plot(sim(mod1)) Thanks in advance! Rafael. _________...
2009 Nov 13
0
about the pgmm in plm package (application and singularity)
...,X2, 0, 0, 0, 0, 0, ............ 0, 0, 0, y1, y2, X1, X2, X3, ............ .....................................................] with 2 period loss I can put X as part of gmm.inst, and specify the lag.gmm If X are not specified, Z=[y1, 0, 0, 0, 0, 0, 0, ................. dX3 0, y1,y2, 0, 0, 0, 0, ................. dX4. 0, 0, 0, y1,y2, y3,0, ................. dX5]with 2 period loss I don't put X as part of gmm.inst nor speficy the lag.gmm of X But if X are strictly exogenous, I don't know how I can implement this case by the command. Z=[y1,...
2009 Apr 05
3
WineVDM crash on CDROM speed test...
I'm trying to install Lords of The Realm II and while it doesn't affect whether or not you ca install the game, I have encountered two crashes if you allow the installer to test your system. The crashes occur when testing CDROM speed and when checking processor speed. CDROM speed test error: Code: 68 0x7eb1ee57 DispatchMessageW+0x103() in user32 (0x007fdff8) 69
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list. I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without modifications. How did I try it? Created a (non-root) build environment (not a mock ) Installed the kernel.scr.rpm and did a rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log The build failed at the end: Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL Checking