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

Function runit_rnorm

inst/tinytest/cpp/rmath.cpp:46–52  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

44
45// [[Rcpp::export]]
46NumericVector runit_rnorm( double a, double b ){
47 NumericVector o(5);
48 for (int i = 0; i < o.size(); i++) {
49 o[i] = R::rnorm(a, b);
50 }
51 return o;
52}
53
54// [[Rcpp::export]]
55NumericVector runit_rnorm_sugar(double a, double b) {

Callers

nothing calls this directly

Calls 2

rnormFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected