[Rcpp-devel] problem with sample() implemented in Rcpp/RcppArmadillo
Darren Cook
darren at dcook.org
Sun Nov 4 09:11:48 CET 2012
> Update -- I've implemented all of R's sample (with identical results)
> except for the walker alias method. I used Armadillo for ProbSampleReplace
> and ProbSampleNoReplace, since there's no good STL replacement for R's
> revsort.
Out of curiosity, what does revsort do? It must be something beyond just
a reverse-order sort?
Darren
P.S. I don't have an R function of that name. Googling found it used in
random.c but not where its defined!
More information about the Rcpp-devel
mailing list