[Rcpp-commits] r1961 - in pkg/Rcpp/inst: . include/Rcpp/stats/random
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Aug 10 08:18:04 CEST 2010
Author: romain
Date: 2010-08-10 08:18:04 +0200 (Tue, 10 Aug 2010)
New Revision: 1961
Modified:
pkg/Rcpp/inst/ChangeLog
pkg/Rcpp/inst/include/Rcpp/stats/random/random.h
pkg/Rcpp/inst/include/Rcpp/stats/random/runif.h
Log:
runif( int, double, double )
Modified: pkg/Rcpp/inst/ChangeLog
===================================================================
--- pkg/Rcpp/inst/ChangeLog 2010-08-10 06:15:06 UTC (rev 1960)
+++ pkg/Rcpp/inst/ChangeLog 2010-08-10 06:18:04 UTC (rev 1961)
@@ -1,6 +1,8 @@
2010-08-10 Romain Francois <romain at r-enthusiasts.com>
* inst/include/Rcpp/stats/random/rnorm.h: Added rnorm and rnorm_
+
+ * inst/include/Rcpp/stats/random/runif.h: Added runif and runif_
* inst/include/Rcpp/stats/stats.h : fixed name clash reported on Rcpp-devel
http://permalink.gmane.org/gmane.comp.lang.r.rcpp/610
Modified: pkg/Rcpp/inst/include/Rcpp/stats/random/random.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/stats/random/random.h 2010-08-10 06:15:06 UTC (rev 1960)
+++ pkg/Rcpp/inst/include/Rcpp/stats/random/random.h 2010-08-10 06:18:04 UTC (rev 1961)
@@ -23,5 +23,6 @@
#define Rcpp__stats__random_random_h
#include <Rcpp/stats/random/rnorm.h>
+#include <Rcpp/stats/random/runif.h>
#endif
Modified: pkg/Rcpp/inst/include/Rcpp/stats/random/runif.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/stats/random/runif.h 2010-08-10 06:15:06 UTC (rev 1960)
+++ pkg/Rcpp/inst/include/Rcpp/stats/random/runif.h 2010-08-10 06:18:04 UTC (rev 1961)
@@ -29,7 +29,7 @@
class UnifGenerator : public Rcpp::Generator<seed,double> {
public:
- UnifGenerator( double min = 0.0, double max = 1.0) :
+ UnifGenerator( double min_ = 0.0, double max_ = 1.0) :
min(min_), max(max_), diff(max_ - min_) {}
inline double operator()() const {
More information about the Rcpp-commits
mailing list