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

Function meanTest

inst/tinytest/cpp/algorithm.cpp:85–87  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

83
84// [[Rcpp::export]]
85double meanTest(Rcpp::NumericVector v) {
86 return Rcpp::algorithm::mean(v.begin(), v.end());
87}
88
89// [[Rcpp::export]]
90double meanTest_int(Rcpp::IntegerVector v) {

Callers

nothing calls this directly

Calls 3

meanFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected