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

Method P2

inst/include/Rcpp/stats/dpq/dpq.h:177–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 typedef double (*FunPtr)(double,double,double,int,int) ;
176
177 P2( FunPtr ptr_, const VEC_TYPE& vec_, double p0_, double p1_,
178 bool lower_tail = true, bool log_ = false ) :
179 ptr(ptr_), vec(vec_), p0(p0_), p1(p1_), lower(lower_tail), log(log_) {}
180
181 inline double operator[]( int i) const {
182 return ptr( vec[i], p0, p1, lower, log );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected