search for: another_number

Displaying 4 results from an estimated 4 matches for "another_number".

2010 Oct 27
2
must .Call C functions return SEXP?
...<- vector("list" ,1e6) .Call("my_C_function", result.1, result.2, other.input) My C code looks like this: SEXP result_v; result_v = Rf_allocVector(REALSXP, 5); SET_VECTOR_ELT(result_list_1, k1, result_v); REAL(result_v)[0] = some_number; REAL(result_v)[1] = another_number; /* Also do the same sort of thing for result_list_2. */ return(result_list_1); /* Appears to work ok. */ /* return; */ /* Segfaults. */ -- Andrew Piskorski <atp at piskorski.com> http://www.piskorski.com/
2012 Mar 08
1
sas retain statement in R or fitting differene equations in NLS
...late the expected values of y if I knew the values of the parameters tau and b. # but in reality I would like to estimate them. # code is for illustration of the principles and is not meant to be functional!! yaux[1]<-0 b<- a_number # b would have to become estimated by nls or nlme tau<- another_number # tau would also be estimated in nls or nlme for (t in 2:1000) { yaux[t+1] <- yaux[t] + (X1-yaux[t])/tau yhat[t+1] <- yaux[t+1]*X2[t+1]/(X2[t+1]+b) } Now, my problem is that I do not know the values of /tau/ and /b/ and I would like to estimated them by non-linear regression. This is easy i...
2003 Dec 14
0
outbound dialing / wait for keypress?
...ically build a dialplan. i make repeated use of this perl call: system("asterisk -r -x 'add extension 100,++$i,Dial(Zap/2/[number],15) into local; to create a dialplan that looks like this: s,1,Answer s,2,agi,script.agi s,3,Goto(local,100,1) 100,1,Dial(Zap/2/[number],15) 100,2,Dial(Zap/2/[another_number],15) ... so far, so good - if the first number dialed is busy or times out, it tries dialing the next number, and so on until one is answered at which point the incoming and outgoing calls are connected. my problem is how to handle the case where an outbound call is answered by, say, an answering...
2012 Mar 06
0
Fitting difference models in R (nls, nlme)
...late the expected values of y if I knew the values of the parameters tau and b. # but in reality I would like to estimate them. # code is for illustration of the principles and is not meant to be functional!! yaux[1]<-0 b<- a_number # b would have to become estimated by nls or nlme tau<- another_number # tau would also be estimated in nls or nlme for (t in 2:1000) { yaux[t+1] <- yaux[t] + (X1-yaux[t])/tau yhat[t+1] <- yaux[t+1]*X2[t+1]/(X2[t+1]+b) } Now, my problem is that I do not know the values of /tau/ and /b/ and I would like to estimated them by non-linear regression. This is easy i...