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

Function d_exp_0

inst/include/Rcpp/stats/exp.h:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace stats {
29
30inline double d_exp_0(double x, int give_log) {
31
32#ifdef IEEE_754
33 /* NaNs propagated correctly */
34 if (ISNAN(x)) return x + 1.0;
35#endif
36
37 if (x < 0.)
38 return R_D__0;
39 return give_log ? (-x) : ::exp(-x);
40}
41
42inline double q_exp_0(double p, int lower_tail, int log_p) {
43#ifdef IEEE_754

Callers

nothing calls this directly

Calls 1

expFunction · 0.50

Tested by

no test coverage detected