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

Function median

inst/include/Rcpp/sugar/functions/median.h:282–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280
281template <int RTYPE, bool NA, typename T>
282inline typename sugar::median_detail::result<RTYPE>::type
283median(const Rcpp::VectorBase<RTYPE, NA, T>& x, bool na_rm = false) {
284 if (!na_rm) return sugar::Median<RTYPE, NA, T, false>(x);
285 return sugar::Median<RTYPE, NA, T, true>(x);
286}
287
288} // Rcpp
289

Callers 4

median_dblFunction · 0.85
median_intFunction · 0.85
median_cxFunction · 0.85
median_chFunction · 0.85

Calls 1

Tested by

no test coverage detected