Re: [Rpy] Faster way to perform computation of a R function

2012-02-23 Thread Bruno Santos
-02-23 18:16, Bruno Santos wrote: > > Thank you Laurent for your quick reply. > > The if k[i] == 0 in R is implement as being + p * (x == 0) which will > add p if k[i]==0 or zero if not. I was trying to came up with a closer > implementation but I cannot do sums or multiplication

Re: [Rpy] Faster way to perform computation of a R function

2012-02-23 Thread Bruno Santos
> On 2012-02-23 17:57, Bruno Santos wrote: > > Hello everyone' > > I am trying to port an R function to estimate some parameters to the > rpy2 but the performance in python is appaling. So I was wondering if there > is a best way of doing this. What I have at the momen

[Rpy] Faster way to perform computation of a R function

2012-02-23 Thread Bruno Santos
Hello everyone' I am trying to port an R function to estimate some parameters to the rpy2 but the performance in python is appaling. So I was wondering if there is a best way of doing this. What I have at the moment is: R code finbinom <-function(pars,x) { p<-pars[1] mu <- pars[2] size <- pars[3]

Re: [Rpy] Problem installing rpy2 after upgrade to 11.10

2011-11-17 Thread Bruno Santos
L. > > > > > On 2011-11-14 16:57, Bruno Santos wrote: > > To whom it may concern, > > I had rpy2 installed but I had to perform a clean installation of > Ubuntu. After that I installed R from the ubuntu software centre plus the > rpy2 package. Nonetheless when running

[Rpy] Problem installing rpy2 after upgrade to 11.10

2011-11-14 Thread Bruno Santos
when I try to locate libRblas.so I can see the file exists under /usr/local/lib64/R/lib/libRblas.so I tried installing from source as well as rpy2 but this didn't solve the problem either. Thank you very much in advance, Bruno Santos ---