search for: simc

Displaying 5 results from an estimated 5 matches for "simc".

Did you mean: kimc
2003 Sep 24
1
Problem using C random generator called from R
...turned to R, they are not in [0,1]. A simple C program using drand48() gives values in [0,1] so I suppose there is a problem (type definition ?) between C and R. Here are R and C function and an example. # R function simulC <- function(n) { dyn.load("test.so") simR <- runif(n) simC <- .C("test", as.integer(n), res=double(n))$res out <- list(simR=simR,simC=simC) out } // C function void test(int *n,double *res) { int i; for(i=0;i<*n;i++) {res[i] = drand48();} } # Result of x <- simulC(5) > x $simR [1] 0.398567942 0.866053345...
2007 Dec 14
1
Quadratic Programming
...9;ll start by stating the problem: I want to minimize h(d,delta)=0.5d^T B d +nabla(f(x))^T d +rho*delta^2 With respect to d\in R^n and delta \in R. I obviously have constraints (depending on both d and delta). Solve.QP does give me a good result for d but I cannot obtain anything for delta. Simce dim(Dmat)=n and sol<-rep(0,n) it isn't particularly surprising. To set a diagonal matrix (B 0 ) Amat= (0 rho ) Is a crapy idea. Does anyone have an idea? Yours, Serge "Beatus qui prodest quibus potest" - (Lycklig är den som hjälper andra) Serge de Gosson de Varennes...
2010 Jul 20
2
This could be a multiple supplier problem
I have finally encountered this problem in such a way that everything went awry. Running Simcity 4 Rush Hour with the following command line: env WINEPREFIX="/home/john/.wine" wine C:\\PROG\~FBU\\Maxis\\SIMC\~ZMW\\Apps\\SimCity\ 4.exe -intro:off Which brought up the game, just fine. I opened my largest city, and very soon after that, while I was adding something to the layout,...
2004 Dec 17
2
Doubts about chi-square distribution
Dear list, For educational purposes I have been working with the script below. I have a observation: line 31 #CScal[i] = (amo^2) # IT IS WRONG, I KNOW, BUT IT MAKE R TO CRASHES! I'm thinking this is a possible bug in the R! And I have a couple of doubts: 1) line 51 #curve(dchisq(x, n-1), add = T, col = 'red' I think that it is correct, but the function no
2004 Oct 14
0
VSS and Samba
Did you ever find a solution for using a linux working directory with VSS? Thanks, Charles