search for: rcomp

Displaying 3 results from an estimated 3 matches for "rcomp".

Did you mean: comp
2011 Dec 13
1
Rcpp too good to be true?
...my code, if someone has a minute to point out anything wrong (or even if its correct and there is room for improvement, im pretty new to this) it would be much appreciated. I've had a simple look at the results and they look fine, but seriously, 500x faster?! function in R; library(compiler) Rrcomp <- cmpfun( function(n, lam, nu, max = 100L) { ans <- integer(n) dist <- dcomp(0:max, lam, nu, max) u <- runif(n) for (i in 1:n) { count <- 0L pr <- dist[1L] while (pr < u[i])...
2012 Nov 07
6
how to generate a set of random numbers that sum to 1 with uniform distribution of elements
Hi, I am looking for a way to generate a matrix of random numbers in a way that each row of the matrix would sum to 1 and that the numbers in the columns of the matrix would have a uniform distribution. So far I have found several ways to create random numbers that would sum to 1, but then the distribution of the individual elements is more or less skewed - there are much more small numbers than
2010 Feb 26
5
[PATCH 0/5] renouveau: nv30/nv40 unification
This patchset applies some minor fixes to renouveau.xml and then unifies the nv30 and nv40 register definitions. nv30 and nv40 are very similar and have the same offsets for the registers they share. The major differences are: 1. Texture setup is different due to full NPOT support on nv40 2. More advanced blending/render targets on nv40 3. NV30 has fixed function registers, which NV40 lacks The