MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / runit_runif

Function runit_runif

inst/tinytest/cpp/rmath.cpp:80–86  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

78
79// [[Rcpp::export]]
80NumericVector runit_runif( double a, double b ){
81 NumericVector o(5);
82 for (int i = 0; i < o.size(); i++) {
83 o[i] = R::runif(a, b);
84 }
85 return o;
86}
87
88// [[Rcpp::export]]
89NumericVector runit_runif_sugar( double a, double b ){

Callers

nothing calls this directly

Calls 2

runifFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected